From 1d3befeaf8c278a9f70286f9eeaa045f9feef306 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sun, 10 Jul 2016 18:19:18 -0700 Subject: Makefile: Add -Wcast-qual It is probably redundant given that we have -Wold-style-cast, but it's better to warn about casts like this in case we ever need to remove the latter flag. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b9e597e..62f7054 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ EXECUTABLE=$(BUILD)/test VERSION=$(shell sed -n 's/.*version \(.*\).*/\1/p' src/pugiconfig.hpp) RELEASE=$(shell git ls-files src docs/*.html docs/*.css docs/samples docs/images scripts contrib CMakeLists.txt readme.txt) -CXXFLAGS=-g -Wall -Wextra -Werror -pedantic -Wundef -Wshadow -Wold-style-cast -Wcast-align +CXXFLAGS=-g -Wall -Wextra -Werror -pedantic -Wundef -Wshadow -Wcast-align -Wcast-qual -Wold-style-cast LDFLAGS= ifeq ($(config),release) -- cgit v1.2.3