I would like to know if it is possible to get a list of warnings that are included in the GCC when the -Wx or -W-no-x flags are not specified? I need this because I have two different versions of GCC (namely 3.3 and 4.3) that respond differently to the same code with the same compilation flags.
For example, 4.3 without additional warning options generates a warning when a comparison without signatures occurs, while 3.3 only does this if the -Wsign-compare flag. So, I would like to find out which flags should be added in gcc-3.3 to make it detect the same 4.3 warnings by default.
For 4.3, I managed to get such a list of warnings using gcc -Q --help=warnings | grep enabled gcc -Q --help=warnings | grep enabled , but 3.3 doesn't seem to provide such a function. Does anyone know how this can be done in any other way? Maybe the source file that defines the alert status?
Regards, Marvin
gcc warnings
mrvn
source share