Florian Weimer wrote:
I am going to explore a way to land -Werror=implicit-int -Werror=implicit-function-declaration among the default compiler flags. There's a bit of an issue because the C++ front end warns on those flags, so we need another -specs= kludge that is incompatible with Clang.
It sounds like those parameters should be added only to CFLAGS, not to CXXFLAGS.
__global_compiler_flags already contains things that cause warnings from the Ada and Fortran compilers. The Ada packages get the warning “'-Werror=' argument '-Werror=format-security' is not valid for Ada” over and over. It doesn't break any builds but it's annoying noise in the build logs.
It would be better if __global_compiler_flags would contain only language-independent parameters, and language-specific parameters were added in build_cflags and build_cxxflags.
Björn Persson