Move -Wno-invalid-offsetof to CPP_LANG_OPTION, because it's only for C++
CC_WARNINGS_CONTROL_OPTION is applied to both C and C++, causing a lot of new warnings
--- a/foundation_system/sf_config/sbs/s60_sbs_config.xml Tue Jun 22 16:08:21 2010 +0100
+++ b/foundation_system/sf_config/sbs/s60_sbs_config.xml Tue Jun 22 22:11:23 2010 +0100
@@ -23,7 +23,7 @@
<var name="surge">
<append name="CPP_LANG_OPTION" value="-fpermissive"/> <!-- downgrade "extra qualification XXX on member YYY" errors to warnings -->
- <append name="CC_WARNINGS_CONTROL_OPTION" value="-Wno-invalid-offsetof"/> <!-- turn off "perhaps the 'offsetof' macro was used incorrectly" -->
+ <append name="CPP_LANG_OPTION" value="-Wno-invalid-offsetof"/> <!-- turn off "perhaps the 'offsetof' macro was used incorrectly" -->
<append name="CC_WARNINGS_CONTROL_OPTION" value="-Wno-attributes"/> <!-- turn off warnings where IMPORT_C and EXPORT_C are *correctly* matched -->
</var>
</build>