summaryrefslogtreecommitdiffstats
path: root/buildrun.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-11-28 11:26:52 -0500
committerFrank Ch. Eigler <fche@elastic.org>2008-11-28 11:26:52 -0500
commit29bdbdb17f088a997b772415d57c37258576f0f5 (patch)
tree33e666ae8cef67e323c62376f95e4393f2a9dd13 /buildrun.cxx
parent70514d65f670ac2160af4c282ebad1e7eb852341 (diff)
downloadsystemtap-steved-29bdbdb17f088a997b772415d57c37258576f0f5.tar.gz
systemtap-steved-29bdbdb17f088a997b772415d57c37258576f0f5.tar.xz
systemtap-steved-29bdbdb17f088a997b772415d57c37258576f0f5.zip
PR5947: make runtime code -Wpointer-arith-clean
Diffstat (limited to 'buildrun.cxx')
-rw-r--r--buildrun.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildrun.cxx b/buildrun.cxx
index 9eeab4ba..ef2a483f 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -139,6 +139,9 @@ compile_pass (systemtap_session& s)
// Assumes linux 2.6 kbuild
o << "EXTRA_CFLAGS += -Wno-unused -Werror" << endl;
+ #if CHECK_POINTER_ARITH_PR5947
+ o << "EXTRA_CFLAGS += -Wpointer-arith" << endl;
+ #endif
o << "EXTRA_CFLAGS += -I\"" << s.runtime_path << "\"" << endl;
// XXX: this may help ppc toc overflow
// o << "CFLAGS := $(subst -Os,-O2,$(CFLAGS)) -fminimal-toc" << endl;