RFC: g++ compiler flag usage

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

 



hi,

as i am using -Werror and also -Wold-style-cast and many more flags,
i do run into some problems when compiling code,
that uses e.g. the FD_SET(int, fd_set*) makro.

of course, i can ommit the -Wold-style-cast or the -Werror flag, and everything will compile fine,
just showing up some warnings. but, i feel very uncomfortable with that situation.

isn't there a possibility e.g to have a 

#ignore Wflags
FD_SET(...,...);
#endignore

that would be helpfull for more people than only me, i think.

having different compiler flags depending on what _can_ be checked within a project is much more
confusing imho.

any opinions? or did i miss something?

regards
marcel

Attachment: pgps9rCKivYgu.pgp
Description: PGP signature


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux