From 8ae9897883d9a93751b9f700ad7e89cc4353341b Mon Sep 17 00:00:00 2001 From: Toon Schoenmakers Date: Fri, 25 Sep 2015 11:26:03 +0200 Subject: 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.. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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` -- cgit v1.2.3