On Thu, Nov 24, 2011 at 6:51 AM, Dave Martin dave.martin@linaro.org 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.
A side note: adding a -Wno-error to the end of a set of flags cancels out any earlier -Werror. I needed to use this recently with a build system that unconditionally turned on -Werror and a g++-4.1 that was a bit wrong in it's warnings.
-- Michael