Re: gcc 4.3 warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux