Re: c & time problem
Ian Collins wrote:
gcc did, see above.
I should point out that this warning is (possibly) unique to gcc. The
compiler is not required (or able without knowledge of the passed
arguments) to type check arguments passed to a variadic function like
printf. Doing so requires compile time parsing of the argument list.
--
Ian Collins.
.
Relevant Pages
- New C compiler and analyzer lang/cparser in ports
... A few days ago libFIRMand cparser were added to the ports tree. ... If you want to see, what other compilers besides GCC have to offer, this might be of interest for you. ... cparser is a C compiler providing many useful warnings and uses libFIRM for optimization and code generation. ... format.c:5: warning: argument type 'int' does not match conversion specifier '%u' at position 1 ... (freebsd-hackers) - Re: Q: Local variables initialization shortcut.
... The popular gcc compiler, for example, has the ... NOT issue any such warning: It sees that `x' necessarily has a value, ... Seems to me the `lot' of typing does more harm than good. ... (comp.lang.c) - Re: Q: Local variables initialization shortcut.
... At least I want to initialise all of them to zero to ... and the compiler can usually be told ... gcc compiler, for example, has the "-Wuninitialized" flag (which ... or a compile-time warning drawing your attention to a potential ... (comp.lang.c) - Re: A C++-Language Question (Maybe C, too)
... Under the gnu compiler, if I leave out one of the commas this ... The problem is you are asking to receive a warning for what is perfectly ... Running Lint after GCC would probably bring the issue to your attention. ... (comp.arch.embedded) - Re: I am learning C: a little problem with a simple source code
... be a non-conforming one. ... Well, the thing is, a warning means "you wrote valid C code, but you ... better things to spend your time on than improving C compiler diagnostics. ... those checks from than inside a burning house like gcc. ... (comp.lang.c) |
|