diff options
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | config/lf_warnings.m4 | 4 | ||||
-rw-r--r-- | volk/config/lf_warnings.m4 | 4 |
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) |