From: Matthew Barr Date: Thu, 12 Jan 2017 23:14:23 +0000 (+1100) Subject: Silence ABI notes in release builds X-Git-Tag: v4.4.0^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c9f38e98d36aa6ab108d0edc2b347788ef4b1f3;p=thirdparty%2Fvectorscan.git Silence ABI notes in release builds --- diff --git a/CMakeLists.txt b/CMakeLists.txt index e1f7cd72..dee408e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)