Browse Source

[trac855] -fno-strict-aliasing

Jelte Jansen 14 years ago
parent
commit
9b16d3b4c0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/lib/cc/Makefile.am
  2. 1 1
      src/lib/config/Makefile.am

+ 1 - 1
src/lib/cc/Makefile.am

@@ -11,7 +11,7 @@ if USE_GXX
 # avoid the error.  As a short term workaround we suppress this warning
 # avoid the error.  As a short term workaround we suppress this warning
 # for the entire this module.  See also src/bin/auth/Makefile.am.
 # for the entire this module.  See also src/bin/auth/Makefile.am.
 AM_CXXFLAGS += -Wno-unused-parameter
 AM_CXXFLAGS += -Wno-unused-parameter
-AM_CXXFLAGS += -Wno-strict-aliasing
+AM_CXXFLAGS += -fno-strict-aliasing
 endif
 endif
 if USE_CLANGPP
 if USE_CLANGPP
 # Likewise, ASIO header files will trigger various warnings with clang++.
 # Likewise, ASIO header files will trigger various warnings with clang++.

+ 1 - 1
src/lib/config/Makefile.am

@@ -3,7 +3,7 @@ SUBDIRS = . tests
 AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
 AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
 AM_CPPFLAGS += -I$(top_builddir)/src/lib/cc
 AM_CPPFLAGS += -I$(top_builddir)/src/lib/cc
 AM_CPPFLAGS += $(BOOST_INCLUDES)
 AM_CPPFLAGS += $(BOOST_INCLUDES)
-AM_CXXFLAGS = $(B10_CXXFLAGS) -Wno-strict-aliasing
+AM_CXXFLAGS = $(B10_CXXFLAGS) -fno-strict-aliasing
 
 
 lib_LTLIBRARIES = libcfgclient.la
 lib_LTLIBRARIES = libcfgclient.la
 libcfgclient_la_SOURCES = config_data.h config_data.cc module_spec.h module_spec.cc ccsession.cc ccsession.h
 libcfgclient_la_SOURCES = config_data.h config_data.cc module_spec.h module_spec.cc ccsession.cc ccsession.h