aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2012-04-11 08:39:17 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2012-04-11 09:06:59 -0400
commit20f6bc1e25b366c55fb95fb084ded37407042071 (patch)
tree678a6dd413e62628f87e888886abec93fb9258d5
parent77b614ec4df27dc0713dc71a2bf38527a4df4386 (diff)
Suppress superfluous warnings
- There are many unused parameters. This is ok, so tell gcc to ignore them. - The code still uses the (well-working) class ext::hash_map<>, which will trigger deprecation warnings. Ignore this for now; the alternatives are only available in recent C++ standard libraries. - Disable warnings alltogether for Swig-generated code. Swig sometimes generates meaningless self-assignments and triggers strict aliasing and a bunch of other warnings. Let's just trust Swig that it knows what it is doing.
-rw-r--r--native/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/native/Makefile b/native/Makefile
index a4ce685..27019a3 100644
--- a/native/Makefile
+++ b/native/Makefile
@@ -14,7 +14,8 @@ GMP_PATH ?= /usr
14 14
15# #### Flags #### 15# #### Flags ####
16 16
17DISABLED_WARNINGS = -Wno-unused-parameter -Wno-deprecated 17DISABLED_WARNINGS = -Wno-unused-parameter # Too much noise.
18DISABLED_WARNINGS += -Wno-deprecated # We still use ext::hash_map<>.
18 19
19INCLUDES = -Iinclude -I${GMP_PATH}/include 20INCLUDES = -Iinclude -I${GMP_PATH}/include
20LIBS = -L${GMP_PATH}/lib -lgmp -lgmpxx 21LIBS = -L${GMP_PATH}/lib -lgmp -lgmpxx
@@ -35,7 +36,7 @@ PYTHON_LIB ?=
35SOFLAGS = -shared 36SOFLAGS = -shared
36endif 37endif
37 38
38CXXFLAGS = -Wall -Wextra -fPIC $(DISABLED_WARNINGS) $(INCLUDES) 39CXXFLAGS = -Wall -Wextra $(DISABLED_WARNINGS) -fPIC $(INCLUDES)
39LDFLAGS = $(LIBS) 40LDFLAGS = $(LIBS)
40SWIGFLAGS = -python -c++ -outdir . -includeall -Iinclude 41SWIGFLAGS = -python -c++ -outdir . -includeall -Iinclude
41 42
@@ -76,7 +77,7 @@ interface/%_wrap.cc: interface/%.i
76 $(SWIG) $(SWIGFLAGS) -o $@ $< 77 $(SWIG) $(SWIGFLAGS) -o $@ $<
77 78
78interface/%_wrap.o: interface/%_wrap.cc 79interface/%_wrap.o: interface/%_wrap.cc
79 $(CXX) $(CXXFLAGS) $(PYTHON_INC) -c -o $@ $+ 80 $(CXX) -fPIC $(INCLUDES) $(PYTHON_INC) -c -o $@ $+
80 81
81_sched.so: ${CORE_OBJ} ${EDF_OBJ} interface/sched_wrap.o 82_sched.so: ${CORE_OBJ} ${EDF_OBJ} interface/sched_wrap.o
82 $(CXX) $(LDFLAGS) $(SOFLAGS) $(PYTHON_LIB) -o $@ $+ 83 $(CXX) $(LDFLAGS) $(SOFLAGS) $(PYTHON_LIB) -o $@ $+