From 16392625055cef798a21c7de48af8a7f069311ab Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Fri, 1 Apr 2022 09:55:25 +1000 Subject: [PATCH] Disable misleading-indentation warning on pedantic builds This is slow (especially for the large sip files), and isn't needed because of the auto formatting scripts we use --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 92d9c906823..3a8e9aa2247 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -631,6 +631,9 @@ if (PEDANTIC) # unavoidable - we can't avoid these, as older, supported compilers do not support removing the redundant move set(_warnings "${_warnings} -Wno-redundant-move") + # disable misleading-indentation warning -- it's slow to parse the sip files and not needed since we have the automated code styling rules + set(_warnings "${_warnings} -Wno-misleading-indentation") + if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.9.999) # heaps of these thrown by Qt headers at the moment (sep 2019) set(_warnings "${_warnings} -Wno-deprecated-copy")