From 29bdbdb17f088a997b772415d57c37258576f0f5 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Fri, 28 Nov 2008 11:26:52 -0500 Subject: PR5947: make runtime code -Wpointer-arith-clean --- buildrun.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'buildrun.cxx') 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; -- cgit