diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-10-17 22:37:43 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-10-17 22:37:43 (GMT) |
| commit | 49ebd1264d9cff42e9e5963f2a2f3c0eb732f375 (patch) | |
| tree | d1477b2656c5891643fd3eca61bcb9e8054975ae /unix | |
| parent | 94d07354cee8df4983bb39da1268bbd22b9e2a91 (diff) | |
| download | tcl-49ebd1264d9cff42e9e5963f2a2f3c0eb732f375.zip tcl-49ebd1264d9cff42e9e5963f2a2f3c0eb732f375.tar.gz tcl-49ebd1264d9cff42e9e5963f2a2f3c0eb732f375.tar.bz2 | |
Add -Wpointer-arith compiler flag to gcc
Diffstat (limited to 'unix')
| -rwxr-xr-x | unix/configure | 2 | ||||
| -rw-r--r-- | unix/tcl.m4 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/unix/configure b/unix/configure index 2af5144..013a8b3 100755 --- a/unix/configure +++ b/unix/configure @@ -4947,7 +4947,7 @@ fi if test "$GCC" = yes; then : CFLAGS_OPTIMIZE=-O2 - CFLAGS_WARNING="-Wall -Wwrite-strings -Wsign-compare -Wdeclaration-after-statement" + CFLAGS_WARNING="-Wall -Wwrite-strings -Wsign-compare -Wdeclaration-after-statement -Wpointer-arith" else diff --git a/unix/tcl.m4 b/unix/tcl.m4 index b77387a..e27cc2c 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -986,7 +986,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ CFLAGS_DEBUG=-g AS_IF([test "$GCC" = yes], [ CFLAGS_OPTIMIZE=-O2 - CFLAGS_WARNING="-Wall -Wwrite-strings -Wsign-compare -Wdeclaration-after-statement" + CFLAGS_WARNING="-Wall -Wwrite-strings -Wsign-compare -Wdeclaration-after-statement -Wpointer-arith" ], [ CFLAGS_OPTIMIZE=-O CFLAGS_WARNING="" |
