------- Comment #4 from jm at bourguet dot org  2006-05-15 11:23 -------
It could be target specific.  I'm still having it on sparc:

~/src 12> cat bug.c 
#include <stdio.h>

void f(char* line) {
    char test_char[40];
    sscanf(line, "%s", &test_char);
}
~/src 13> gcc-4.1.0 -v -Wall -Wextra -c bug.c
Reading specs from
/net/cdssoph29/export/bourguet/soft/gcc-4.1.0/lib/gcc/sparc-sun-solaris2.8/4.1.0/specs
Target: sparc-sun-solaris2.8
Configured with: /net/cdssoph29/export/bourguet/soft/src/gcc-4.1.0/configure
--prefix=/net/cdssoph29/export/bourguet/soft/gcc-4.1.0
-with-local-prefix=/net/cdssoph29/export/bourguet/soft --enable-languages=c,c++
Thread model: posix
gcc version 4.1.0

/net/cdssoph29/export/bourguet/soft/gcc-4.1.0/libexec/gcc/sparc-sun-solaris2.8/4.1.0/cc1
-quiet -v bug.c -quiet -dumpbase bug.c -mcpu=v7 -auxbase bug -Wall -Wextra
-version -o /var/tmp//ccMFd6Sj.s
ignoring nonexistent directory
"/net/cdssoph29/export/bourguet/soft/gcc-4.1.0/lib/gcc/sparc-sun-solaris2.8/4.1.0/../../../../sparc-sun-solaris2.8/include"
#include "..." search starts here:
#include <...> search starts here:
 /net/cdssoph29/export/bourguet/soft/include
 /net/cdssoph29/export/bourguet/soft/gcc-4.1.0/include

/net/cdssoph29/export/bourguet/soft/gcc-4.1.0/lib/gcc/sparc-sun-solaris2.8/4.1.0/include
 /usr/include
End of search list.
GNU C version 4.1.0 (sparc-sun-solaris2.8)
        compiled by GNU C version 4.1.0.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: d62655ae7acc6707e9cb7c8893f3e5fa
bug.c: In function 'f':
bug.c:5: warning: format '%s' expects type 'char *', but argument 3 has type
'char (*)[39u]'
 /usr/ccs/bin/as -V -Qy -s -xarch=v8 -o bug.o /var/tmp//ccMFd6Sj.s
/usr/ccs/bin/as: Sun WorkShop 6 2003/12/18 Compiler Common 6.0 Patch 114802-02


-- 

jm at bourguet dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|FIXED                       |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27558

Reply via email to