]> granicus.if.org Git - php/commitdiff
add a configure option to suppress uncritical warns with clang
authorAnatol Belski <ab@php.net>
Thu, 13 Nov 2014 10:43:01 +0000 (11:43 +0100)
committerAnatol Belski <ab@php.net>
Thu, 13 Nov 2014 10:43:01 +0000 (11:43 +0100)
win32/build/config.w32

index 61e1882ce4c41927091e57bb639b748331083825..aae27f2ca2e9905f0de71e5d68006e2e069efbe4 100644 (file)
@@ -239,3 +239,10 @@ if (PHP_ANALYZER == "vs") {
        PHP_ANALYZER = "no"
 }
 
+if (CLANG_TOOLSET) {
+       ARG_WITH("uncritical-warn-choke", "Disable some uncritical warnings", "yes");
+       if (PHP_UNCRITICAL_WARN_CHOKE != "no") {
+               ADD_FLAG("CFLAGS", "-Wno-ignored-attributes -Wno-deprecated-declarations -Wno-missing-braces -Wno-msvc-include -Wno-invalid-source-encoding");
+       }
+}
+