diff options
Diffstat (limited to '.vars.rc.do')
-rwxr-xr-x | .vars.rc.do | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.vars.rc.do b/.vars.rc.do index 153a20c..a5521e6 100755 --- a/.vars.rc.do +++ b/.vars.rc.do @@ -10,8 +10,7 @@ CFLAGS=(-std=c11 -fPIC) warnings=( -Wall -Wcast-align -Wcast-qual -Wextra -Wpedantic -Wformat=2 -Winit-self -Wmissing-prototypes -Wpointer-arith -Wshadow - -Wstrict-prototypes -Wsuggest-attribute=format - -Wsuggest-attribute=noreturn + -Wstrict-prototypes ) declare -a CFLAGS CPPFLAGS LDFLAGS LDLIBS @@ -53,6 +52,9 @@ if [[ $optimise ]]; then fi if [[ $warn ]]; then CFLAGS+=("${warnings[@]}") + if [[ $warn = 'gcc' ]]; then + CFLAGS+=(-Wsuggest-attribute=format -Wsuggest-attribute=noreturn) + fi fi if [[ $werror ]]; then CFLAGS+=(-Werror) |