summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToon Schoenmakers <toon.schoenmakers@copernica.com>2015-09-25 11:26:03 +0200
committerToon Schoenmakers <toon.schoenmakers@copernica.com>2015-09-25 11:26:03 +0200
commit8ae9897883d9a93751b9f700ad7e89cc4353341b (patch)
tree94f990374fcecfb2e3f062f278fa8ab9197ef3a7
parentd745768edff718c8483dc1e3613e34800e93559f (diff)
Silence the write-strings warning
Literal strings in C are const char* of course, some methods within zend expect something hardcoded but accept a normal char*.. Meaning zend is broken when it comes to const correctness. Seeing how they're calling these kind of methods themselves with hardcoded values I'll assume it doesn't get modified meaning the silenced code is fine. Still though, zend should accept const char* instead of char* in such locations..
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b1a8047..4ca8699 100644
--- a/Makefile
+++ b/Makefile
@@ -106,7 +106,7 @@ endif
# you want to leave that flag out on production servers).
#
-COMPILER_FLAGS = -Wall -c -std=c++11 -fvisibility=hidden -DBUILDING_PHPCPP
+COMPILER_FLAGS = -Wall -c -std=c++11 -fvisibility=hidden -DBUILDING_PHPCPP -Wno-write-strings
SHARED_COMPILER_FLAGS = -fpic
STATIC_COMPILER_FLAGS =
PHP_COMPILER_FLAGS = ${COMPILER_FLAGS} `${PHP_CONFIG} --includes`