gcc 4.3 warnings

Chris Jones jonesc at hep.phy.cam.ac.uk
Wed Aug 6 09:11:24 UTC 2008


Skunk Worx wrote:
> $ gcc foo.c
> foo.c:1:16: warning: missing terminating " character
> 
> $ cat foo.c
> #define DQUOTE "
> main() {}
> 
> A few people at work have mentioned it seems unusual for a preprocessor
> to complain about simple macros this way.
> 
> What do others think of this?

I get the same with gcc 4.2.3

Can't think why you would want to do

#define DQUOTE "

? it looks damn strange to me, I'm not surprised the preprocessor gives
a warning. Suggest you take this to a gcc mailing list, as it has
nothing to do with ubuntu.

cheers Chris




More information about the fedora-list mailing list