pardo@cs.washington.edu (pardo@cs.washington.edu) (12/14/89)
`gcc' 1.36
configuration: config.gcc; VAX and Sequent.
Both the `-W' and `-Wall' switches fail to complain when a function
fails to return a struct value (as opposed to a struct *).
foo.c:
typedef struct blah {
char *x;
char *y;
char *z;
} blah;
blah
give_me_a_blah()
{
blah s;
s.x = "a";
s.y = "b";
s.z = "c";
}
gcc -v -W -Wall -c foo.c
gcc version 1.36
/uns/usr/local/lib/gcc-cpp -v -undef -D__GNUC__ -Dvax -Dunix -D__vax__ -D__unix__ -Wall foo.c /usr/tmp/cca15486.cpp
GNU CPP version 1.36
/uns/usr/local/lib/gcc-cc1 /usr/tmp/cca15486.cpp -quiet -dumpbase foo.c -W -Wall -version -o /usr/tmp/cca15486.s
GNU C version 1.36 (vax) compiled by GNU C version 1.36.
default target switches: -munix
as -o foo.o /usr/tmp/cca15486.s
;-D on ( Complaining about no complaints ) Pardo