summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Lucina <mato@kotelna.sk>2010-05-10 16:32:10 +0200
committerMartin Lucina <mato@kotelna.sk>2010-05-10 16:32:10 +0200
commit9d16a415cbfd33f89d2f5afd96ed7cd34a21a634 (patch)
tree5e0a8880c35df11a29537b0ab6c74a2c61fd64b1
parent2cf9f04a460473ea10e901e68e66596583d0d286 (diff)
OpenPGM build flags cleanup
Removed various exotic -Wxxx flags in the OpenPGM build to get us to what is actually required and reasonable; added in -fno-strict-aliasing since OpenPGM generates lots of warnings about dereferencing typed-punned pointers; removed the OpenPGM extra flags from libzmq_la_CXXFLAGS and left them only in libzmq_la_CFLAGS so that our code is not built with the OpenPGM extra flags.
-rw-r--r--src/Makefile.am23
1 files changed, 2 insertions, 21 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 8d7f608..fa97ca3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -221,36 +221,17 @@ libpgm_diff_flags = \
endif
libzmq_la_CFLAGS = -I$(top_srcdir)/foreign/openpgm/@pgm_basename@/openpgm/pgm/include/ @LIBZMQ_EXTRA_CXXFLAGS@ \
- -pipe \
-Wall \
- -Wextra \
- -Wfloat-equal \
- -Wshadow \
- -Wunsafe-loop-optimizations \
- -Wpointer-arith \
- -Wbad-function-cast \
- -Wcast-qual \
- -Wcast-align \
- -Wwrite-strings \
- -Waggregate-return \
- -Wstrict-prototypes \
- -Wold-style-definition \
- -Wmissing-prototypes \
- -Wmissing-declarations \
- -Wmissing-noreturn \
- -Wmissing-format-attribute \
- -Wredundant-decls \
- -Wnested-externs \
- -Winline \
-pedantic \
-std=gnu99 \
+ -fno-strict-aliasing \
--param max-inline-insns-single=600 \
-D_REENTRANT \
-D_GNU_SOURCE \
${libpgm_diff_flags}
libzmq_la_CXXFLAGS = -I$(top_srcdir)/foreign/openpgm/@pgm_basename@/openpgm/pgm/include/ \
- -Wall @LIBZMQ_EXTRA_CXXFLAGS@ ${libpgm_diff_flags}
+ @LIBZMQ_EXTRA_CXXFLAGS@
endif
if BUILD_NO_PGM