Skip to content

Commit 9b19f51

Browse files
committed
add a configure option to suppress uncritical warns with clang
1 parent b6c8349 commit 9b19f51

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

win32/build/config.w32

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,3 +239,10 @@ if (PHP_ANALYZER == "vs") {
239239
PHP_ANALYZER = "no"
240240
}
241241

242+
if (CLANG_TOOLSET) {
243+
ARG_WITH("uncritical-warn-choke", "Disable some uncritical warnings", "yes");
244+
if (PHP_UNCRITICAL_WARN_CHOKE != "no") {
245+
ADD_FLAG("CFLAGS", "-Wno-ignored-attributes -Wno-deprecated-declarations -Wno-missing-braces -Wno-msvc-include -Wno-invalid-source-encoding");
246+
}
247+
}
248+

0 commit comments

Comments
 (0)