summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-17 22:37:43 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-17 22:37:43 (GMT)
commit49ebd1264d9cff42e9e5963f2a2f3c0eb732f375 (patch)
treed1477b2656c5891643fd3eca61bcb9e8054975ae /unix
parent94d07354cee8df4983bb39da1268bbd22b9e2a91 (diff)
downloadtcl-49ebd1264d9cff42e9e5963f2a2f3c0eb732f375.zip
tcl-49ebd1264d9cff42e9e5963f2a2f3c0eb732f375.tar.gz
tcl-49ebd1264d9cff42e9e5963f2a2f3c0eb732f375.tar.bz2
Add -Wpointer-arith compiler flag to gcc
Diffstat (limited to 'unix')
-rwxr-xr-xunix/configure2
-rw-r--r--unix/tcl.m42
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=""