satyaakam goswami wrote:
Hi,
c++ code which used to link with gcc3.2.3, failed with gcc4.1.1,
the error is
"warning: NULL used in arithmetic" , found searching on web that NULL
should be changed to 0 to avoid this error , my questions is why the
link should fail when we have just the warnings, is this normal
behaviour in gcc4.1.1 to fail on warnings.
Satya
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.