com php-src: add a configure option to suppress uncritical warns with clang: win32/build/config.w32

From: Date: Thu, 13 Nov 2014 10:43:01 +0000
Subject: com php-src: add a configure option to suppress uncritical warns with clang: win32/build/config.w32
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-83076@lists.php.net to get a copy of this message
Commit: 9b19f516a5f701790f0407327264b17e5b003b71 Author: Anatol Belski <ab@php.net> Thu, 13 Nov 2014 11:43:01 +0100 Parents: b6c8349be0410090874e8ace322b2bdb1e2e52a7 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9b19f516a5f701790f0407327264b17e5b003b71 Log: add a configure option to suppress uncritical warns with clang Changed paths: M win32/build/config.w32 Diff: diff --git a/win32/build/config.w32 b/win32/build/config.w32 index 61e1882..aae27f2 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"); + } +} +

« previous php.cvs (#83076) next »