From: Anatol Belski Date: Thu, 13 Nov 2014 10:43:01 +0000 (+0100) Subject: add a configure option to suppress uncritical warns with clang X-Git-Tag: PRE_NATIVE_TLS_MERGE~130^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b19f516a5f701790f0407327264b17e5b003b71;p=php add a configure option to suppress uncritical warns with clang --- diff --git a/win32/build/config.w32 b/win32/build/config.w32 index 61e1882ce4..aae27f2ca2 100644 --- a/win32/build/config.w32 +++ b/win32/build/config.w32 @@ -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"); + } +} +