From 9d16a415cbfd33f89d2f5afd96ed7cd34a21a634 Mon Sep 17 00:00:00 2001 From: Martin Lucina Date: Mon, 10 May 2010 16:32:10 +0200 Subject: 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. --- src/Makefile.am | 23 ++--------------------- 1 file 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 -- cgit v1.2.3