warning: NULL used in arithmetic

Tim Stahlhut stahta01@netzero.com
Thu May 17 04:23:00 GMT 2007


satyaakam goswami wrote:

> -Werror

The option -Werror makes all warnings fatal not it being GCC 4.1.
Without knowing what options you passed to the compiler it all
guesswork.

I short google search came up with possible cause of aliasing, note I
use 3.4.5 so no direct knowedge of the issue.

You might look for the options

-Wstrict-aliasing

Might wish to try the options below

-fno-strict-aliasing

Tim S



More information about the Gcc-help mailing list