From 0cad2778b4e84ba7534e41a9decdb470224de3ae Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 16 Aug 2018 17:45:56 +0200 Subject: [PATCH] cmake: Correctly detect support for __bounded__ attribute Signed-off-by: Andreas Schneider (cherry picked from commit 4104d2fb917d7d31d9c1ecb91fde1370e517c318) --- ConfigureChecks.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 650119cb..3d6f5662 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -354,9 +354,6 @@ int main(void) { return 0; }" HAVE_COMPILER__FUNCTION__) -# Stop treating warnings as errors -unset(CMAKE_REQUIRED_FLAGS) - check_c_source_compiles(" #define ARRAY_LEN 16 void test_attr(const unsigned char *k) @@ -366,6 +363,9 @@ int main(void) { return 0; }" HAVE_GCC_BOUNDED_ATTRIBUTE) +# Stop treating warnings as errors +unset(CMAKE_REQUIRED_FLAGS) + if (WITH_DEBUG_CRYPTO) set(DEBUG_CRYPTO 1) endif (WITH_DEBUG_CRYPTO)