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
This commit is contained in:
Nyall Dawson 2022-04-01 09:55:25 +10:00
parent 10e408efc6
commit 1639262505

View File

@ -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")