From f1251f81e0eef079b4dbf2cde2ed017982dd0ddb Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Tue, 21 May 2024 20:45:07 -0300 Subject: [PATCH] build: Unset GCC_WORKING_PEDANTIC_SEMICOLON before actual compiler check --- .../custom-modules/ns3-compiler-and-linker-support.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/build-support/custom-modules/ns3-compiler-and-linker-support.cmake b/build-support/custom-modules/ns3-compiler-and-linker-support.cmake index 0b86af45d..44426b2d3 100644 --- a/build-support/custom-modules/ns3-compiler-and-linker-support.cmake +++ b/build-support/custom-modules/ns3-compiler-and-linker-support.cmake @@ -58,6 +58,7 @@ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") # Check if pedantic throws warning in trailing semicolon after {} scope # (frequently used to make macros look like functions) + unset(GCC_WORKING_PEDANTIC_SEMICOLON) include(CheckCXXSourceCompiles) set(CMAKE_REQUIRED_FLAGS "-Wall -Wpedantic -Werror") check_cxx_source_compiles(