flags for GCC compilers version 4.8 and above. Removed files from gnu-warnings that only apply to versions < 4.8. Consolidated warnings from versions < 4.8 that apply to versions >= 4.8 into the 4.8 warnings files.
24 lines
701 B
Groff
24 lines
701 B
Groff
# developer warning flags added for GCC >= 4.5
|
|
#
|
|
# -Wjump-misses-init makes lots of noise for a questionable benefit.
|
|
# Can jumping over an initialization in C cause any harm, if
|
|
# the variable is never *used* before it has been initialized?
|
|
#
|
|
-Wjump-misses-init
|
|
-Wunsuffixed-float-constants
|
|
|
|
# developer warning flag added for GCC >= 4.6
|
|
-Wsuggest-attribute=const
|
|
|
|
# developer warning flags added for GCC >= 4.7
|
|
-Wsuggest-attribute=noreturn
|
|
-Wsuggest-attribute=pure
|
|
#
|
|
# It's not clear that -Wvector-operation-performance warnings are
|
|
# actionable, so they are demoted to "developer" warnings.
|
|
#
|
|
-Wvector-operation-performance
|
|
|
|
# developer warning flag added for GCC >= 4.8
|
|
-Wsuggest-attribute=format
|