]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Silence ABI notes in release builds
authorMatthew Barr <matthew.barr@intel.com>
Thu, 12 Jan 2017 23:14:23 +0000 (10:14 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Tue, 17 Jan 2017 00:38:16 +0000 (11:38 +1100)
CMakeLists.txt

index e1f7cd72d0859b898446f757b64b10168621fbd8..dee408e3c3d8184f0522fd27d603dbae1a39f5dc 100644 (file)
@@ -230,6 +230,12 @@ else()
         set(EXTRA_CXX_FLAGS "${EXTRA_CXX_FLAGS} -fno-omit-frame-pointer")
     endif()
 
+    if (RELEASE_BUILD)
+        # we don't need the noise of ABI warnings in a release build
+        set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -Wno-abi")
+        set(EXTRA_CXX_FLAGS "${EXTRA_CXX_FLAGS} -Wno-abi")
+    endif ()
+
 endif()
 
 CHECK_INCLUDE_FILES(unistd.h HAVE_UNISTD_H)