gcc4.6,how to remove werror
rreedd555 at gmail.com
Sat Nov 26 19:09:29 UTC 2011
Sorry for lacking information.
I would like to explain again.
When I compile kernel with gcc-4.4.3 and remove Werror from Makefile of
top of kernel tree, then no warnings to error.
When using gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) and also
remove Werror from Makefile of top of kernel tree, But warnings to error.
ex).array subscript is above array bounds [-Werror=array-bounds]
cc1: all warnings being treated as errors.
So I removed Werror from Makefile for some modules and etc.
Just I feel strange, Because I think it will override other Makefile
when remove Werror from Makefile of top of kernel tree.
But I am not sure this issue is for compiler, Makefiles or my
On Wed, Nov 23, 2011 at 05:51:40PM +0000, Dave Martin wrote:
> On Wed, Nov 23, 2011 at 09:41:52PM +0700, tknv wrote:
> > Thank you very much, quick reply.
> > Yes, It is right," it may be better to improve the code instead of turning of the error check."
> > But this time I would like to testing some modules at first even any
> > warnings occur at other modules.
> > I removed -Werror from Makefile at modules have warnings.
> > By the way, KBUILD_CFLAGS's -Werror does not work correct ?
> Can you re-run your build with V=1 on the make command line, and post
> the log so I can see what happens?
> I still don't feel I have enough information to understand exactly
> what's happening.
> Additional CFLAGS get added at different places in the Makefiles, so
> it is possible that your change has been overridden somewhere else.
> linaro-toolchain mailing list
> linaro-toolchain at lists.linaro.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 490 bytes
Desc: Digital signature
More information about the linaro-toolchain