From 3eea106c3c856b1f75823df4b51e3fb152014086 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Mon, 19 Jul 2021 09:12:36 +0200 Subject: Explicitly disable GCC's -Wmisleading-indentation --- CMakeLists.txt | 3 ++- Makefile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7518f4f..0bef602 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,8 @@ cmake_minimum_required (VERSION 3.1) project (sdn VERSION 0.1 LANGUAGES CXX) 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 () # Since we use a language with slow compilers, let's at least use a fast linker diff --git a/Makefile b/Makefile index 7fc3ccb..57ff1bb 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .POSIX: 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 \([^ )]*\).*/ \ s//-DPROJECT_NAME="\1" -DPROJECT_VERSION="\2"/p' CMakeLists.txt` -- cgit v1.2.3-70-g09d2