Explicitly disable GCC's -Wmisleading-indentation

This commit is contained in:
Přemysl Eric Janouch 2021-07-19 09:12:36 +02:00
parent 7de8c84e8f
commit 3eea106c3c
Signed by: p
GPG Key ID: A0420B94F92B9493
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,8 @@ cmake_minimum_required (VERSION 3.1)
project (sdn VERSION 0.1 LANGUAGES CXX) project (sdn VERSION 0.1 LANGUAGES CXX)
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic") set (CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-misleading-indentation -pedantic")
endif () endif ()
# Since we use a language with slow compilers, let's at least use a fast linker # Since we use a language with slow compilers, let's at least use a fast linker

View File

@ -1,6 +1,6 @@
.POSIX: .POSIX:
SHELL = /bin/sh SHELL = /bin/sh
CXXFLAGS = -g -std=c++14 -Wall -Wextra -pedantic CXXFLAGS = -g -std=c++14 -Wall -Wextra -Wno-misleading-indentation -pedantic
CPPFLAGS = `sed -ne '/^project (\([^ )]*\) VERSION \([^ )]*\).*/ \ CPPFLAGS = `sed -ne '/^project (\([^ )]*\) VERSION \([^ )]*\).*/ \
s//-DPROJECT_NAME="\1" -DPROJECT_VERSION="\2"/p' CMakeLists.txt` s//-DPROJECT_NAME="\1" -DPROJECT_VERSION="\2"/p' CMakeLists.txt`