diff options
Diffstat (limited to 'cflags.SH')
-rwxr-xr-x | cflags.SH | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -188,6 +188,7 @@ Intel*) ;; # # Is that you, Intel C++? # *) for opt in -std=c89 -ansi $pedantic \ -Werror=declaration-after-statement \ + -Werror=pointer-arith \ -Wextra -W \ -Wc++-compat -Wwrite-strings do @@ -247,6 +248,16 @@ Intel*) ;; # # Is that you, Intel C++? ;; esac ;; + -Werror=pointer-arith) + # -pedantic* covers -Werror=p-a + case "$warn" in + *-pedantic*) ;; + *) + echo "cflags.SH: Adding $opt." + warn="$warn $opt" + ;; + esac + ;; *) echo "cflags.SH: Adding $opt." warn="$warn $opt" @@ -367,7 +378,8 @@ case "$cc" in ;; esac -for f in -Wdeclaration-after-statement -Werror=declaration-after-statement +for f in -Wdeclaration-after-statement -Werror=declaration-after-statement \ + -Wpointer-arith -Werror=pointer-arith do case "$cppflags" in *"$f"*) |