summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rondeau2011-12-11 14:43:51 -0500
committerTom Rondeau2011-12-11 14:43:51 -0500
commit8cee087b35b4692863a170c1a88e3fda36a005c6 (patch)
tree187b264931b5a2e6b1a4ddc13b4d5be59af84dff
parentc08487898c1be6a44f3cd19c0e7ff78095033efe (diff)
downloadgnuradio-8cee087b35b4692863a170c1a88e3fda36a005c6.tar.gz
gnuradio-8cee087b35b4692863a170c1a88e3fda36a005c6.tar.bz2
gnuradio-8cee087b35b4692863a170c1a88e3fda36a005c6.zip
Most of these warnings are coming from swig-generated sources. They are almost never an actual problem, so just turn the warning off.
-rw-r--r--CMakeLists.txt1
-rw-r--r--config/lf_warnings.m44
-rw-r--r--volk/config/lf_warnings.m44
3 files changed, 5 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8712993e4..b966d3313 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -65,6 +65,7 @@ endif()
if(CMAKE_COMPILER_IS_GNUCXX)
GR_ADD_CXX_COMPILER_FLAG_IF_AVAILABLE(-Wsign-compare HAVE_WARN_SIGN_COMPARE)
GR_ADD_CXX_COMPILER_FLAG_IF_AVAILABLE(-Wall HAVE_WARN_ALL)
+ GR_ADD_CXX_COMPILER_FLAG_IF_AVAILABLE(-Wno-uninitialized HAVE_WARN_NO_UNINITIALIZED)
endif(CMAKE_COMPILER_IS_GNUCXX)
if(MSVC)
diff --git a/config/lf_warnings.m4 b/config/lf_warnings.m4
index d40c77f14..508450fa9 100644
--- a/config/lf_warnings.m4
+++ b/config/lf_warnings.m4
@@ -108,8 +108,8 @@ EOF
AC_DEFUN([LF_SET_WARNINGS],[
dnl Warnings for the two main compilers
dnl add -Wextra when you're got time to fix a bunch of them ;-)
- cc_warning_flags="-Wall -Werror-implicit-function-declaration"
- cxx_warning_flags="-Wall -Woverloaded-virtual"
+ cc_warning_flags="-Wall -Werror-implicit-function-declaration -Wno-uninitialized"
+ cxx_warning_flags="-Wall -Woverloaded-virtual -Wno-uninitialized"
if test -n "${CC}"
then
LF_CHECK_CC_FLAG($cc_warning_flags)
diff --git a/volk/config/lf_warnings.m4 b/volk/config/lf_warnings.m4
index e62fb276c..0ef7b2b37 100644
--- a/volk/config/lf_warnings.m4
+++ b/volk/config/lf_warnings.m4
@@ -110,8 +110,8 @@ EOF
AC_DEFUN([LF_SET_WARNINGS],[
dnl Warnings for the two main compilers
dnl add -Wextra when you're got time to fix a bunch of them ;-)
- cc_warning_flags="-Wall -Werror-implicit-function-declaration"
- cxx_warning_flags="-Wall -Woverloaded-virtual"
+ cc_warning_flags="-Wall -Werror-implicit-function-declaration -Wno-uninitialized"
+ cxx_warning_flags="-Wall -Woverloaded-virtual -Wno-uninitialized"
if test -n "${CC}"
then
LF_CHECK_CC_FLAG($cc_warning_flags)