summaryrefslogtreecommitdiffstats
path: root/config/gnu-warnings/developer-4.8
blob: be7720cb90bc3b2421a3154607ed9b171cfd0566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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

# developer warning flag added for GCC >= 4.5
#
# strict-overflow level 5 catches a LOT of false positives, but is useful
# for detecting overflow conditions.
#
-Wstrict-overflow=5

# 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