Re: warning: NULL used in arithmetic

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

 



satyaakam@xxxxxxxxx wrote:
The option -Werror makes warnings fatal.  With the more thorough
checking of headers since gcc 4.1, it frequently becomes necessary to
prevent -Werror from being set.  If I were to give a personal opinion,
the idea of ascribing a numerical value to NULL seems sufficiently
objectionable to deserve fatality.

so if i understand correctly now in gcc 4.1 all warnings are treated
as errors and it will not let the link phase happen and hence the
build will fail.

Satya
No, look for the message like "warnings treated as errors" which means that -Werror is set, then, if you wish, figure out how to over-ride with -Wno-error, or by removing stuff in your build procedure which sets -Werror. For example, the libcpp and libstdc++ builds contains a Makefile macro WERROR, which can be removed so that -Wno-error persists.

[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