On Tue, Sep 26, 2023 at 10:28:34AM +0200, Florian Weimer via Gcc wrote: > My understanding of the consensus goes as follows: > > * We want to make some changes in this area for GCC 14. > * We should do the same thing that Clang does: default to the relevant > -Werror= options.
I think it doesn't have to be necessarily using defaulting to -Werror=, -Werror= involves diagnostic_classify_diagnostic etc. It could very well be also just testing if the corresponding warning option isn't explicitly (OPTION_SET_P) disabled and isn't explicitly -Wno-error=OPTION and c99 or later and conditionally based on that use error (which would print the [-W...] part though) or warning. The former would be in system headers too, the latter wouldn't. We need to decide what exact options we want to turn those errors (and/or warnings) off or on, -Wno-implicit-int, -w, -Wno-error, -Wno-error=implicit-int, ... Jakub