summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2016-07-10 18:19:18 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2016-07-10 18:19:18 -0700
commit1d3befeaf8c278a9f70286f9eeaa045f9feef306 (patch)
treea9c8bb022d0d7b5e2f7e3e1bbe970f50de1cd3ad /Makefile
parent4dbb5646196a4a3cc94097f1473ef11d1d44df11 (diff)
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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)