[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gcc memory allocation
Oleg Goldshmidt <goldshmt@netvision.net.il> writes:
> As for -Wall, the man page lists the -W flags that are included in
> -Wall (NB: _not_ all -Wflags are enabled by -Wall!),
Re-reading my own posting: it occured to me that a good example of a
-W flag not implied by -Wall is the flag that would flush yet another
non-ANSI construct in Constantin's code (void main):
$ gcc -pedantic -Wstrict-prototypes foo.c -o foo
foo.c:2: warning: function declaration isn't a prototype
foo.c: In function `main':
foo.c:4: warning: ANSI C forbids variable-size array `a'
Hmm... Why wasn't it in the new linuxprog list? I am just following
the original posting to linux-il without cross-posting there.
--
Oleg Goldshmidt
BFM Financial Research Ltd. / Bloomberg L.P.
goldshmt@netvision.net.il