
On Friday 30 October 2009 11:53:43 Scott Wood wrote:
On Fri, Oct 30, 2009 at 09:28:04AM +0100, Wolfgang Denk wrote:
Scott Wood wrote:
We can't build everything with it, as we have a lot of code that is incompatible. There were already exceptions in the makefiles for these files. Fixing that code is beyond the scope of this change, especially for code like libfdt that has an external upstream.
I'd be OK with removing -pedantic from everything, if Wolfgang agrees.
I don't agree. Rather I'd like to see it added everywhere, or at least to all code that is compiled using HOSTCC.
Well, then someone has to fix the code that doesn't build with -pedantic -- including upstream code from libfdt.
That's beyond the scope of a makefile restructuring, though this patch does make it a little simpler to move files from one set to another as they get fixed.
then lets go the route you proposed -- invert the logic. default includes the -pedantic flag while the HOSTCOMPILE_NOPED does not. and we use that for the code that needs newer standards. -mike