devel/qt5-webengine: fix build with clang 16

This just suppresses one warning which might otherwise
error out with the latest clang.

PR:		270458
This commit is contained in:
Eric Camachat 2023-04-18 17:34:05 +02:00 committed by Adriaan de Groot
parent 1d6547adc9
commit b10f16b4f4

View file

@ -18,7 +18,15 @@
ldflags += [ "-Wl,--fatal-warnings" ]
}
if (fatal_linker_warnings && is_apple &&
@@ -407,7 +407,7 @@ config("compiler") {
@@ -310,6 +310,7 @@ config("compiler") {
if (use_qt && is_clang) {
cflags += [
+ "-Wno-enum-constexpr-conversion",
"-Wno-unknown-attributes",
"-Wno-unknown-pragmas",
"-Wno-unknown-warning-option"
@@ -407,7 +408,7 @@ config("compiler") {
# Compiler instrumentation can introduce dependencies in DSOs to symbols in
# the executable they are loaded into, so they are unresolved at link-time.
@ -27,7 +35,7 @@
ldflags += [
"-Wl,-z,defs",
"-Wl,--as-needed",
@@ -795,7 +795,7 @@ config("compiler_cpu_abi") {
@@ -795,7 +796,7 @@ config("compiler_cpu_abi") {
cflags += [ "-mtune=$arm_tune" ]
}
} else if (current_cpu == "arm64") {
@ -36,7 +44,7 @@
cflags += [ "--target=aarch64-linux-gnu" ]
ldflags += [ "--target=aarch64-linux-gnu" ]
}
@@ -1148,7 +1148,7 @@ config("compiler_deterministic") {
@@ -1148,7 +1149,7 @@ config("compiler_deterministic") {
"-Xclang",
".",
]
@ -45,7 +53,7 @@
# We don't use clang -cc1as on Windows (yet? https://crbug.com/762167)
asmflags = [ "-Wa,-fdebug-compilation-dir,." ]
}
@@ -1550,7 +1550,7 @@ config("default_warnings") {
@@ -1550,7 +1551,7 @@ config("default_warnings") {
cflags += [ "-Wno-nonportable-include-path" ]
}
@ -54,7 +62,7 @@
# Flags NaCl (Clang 3.7) and Xcode 9.2 (Clang clang-900.0.39.2) do not
# recognize.
cflags += [
@@ -1724,7 +1724,7 @@ config("no_chromium_code") {
@@ -1724,7 +1725,7 @@ config("no_chromium_code") {
# suppressing them individually, we just blanket suppress them here.
"-Wno-unused-variable",
]
@ -63,7 +71,7 @@
cflags += [
# TODO(https://crbug.com/1031169): Clean up and enable.
"-Wno-misleading-indentation",
@@ -1802,7 +1802,7 @@ config("thin_archive") {
@@ -1802,7 +1803,7 @@ config("thin_archive") {
# Mac and iOS use the mac-specific "libtool" command, not ar, which doesn't
# have a "thin archive" mode (it does accept -T, but it means truncating
# archive names to 16 characters, which is not what we want).
@ -72,7 +80,7 @@
arflags = [ "-T" ]
} else if (is_win && use_lld) {
arflags = [ "/llvmlibthin" ]
@@ -2343,7 +2343,7 @@ config("symbols") {
@@ -2343,7 +2344,7 @@ config("symbols") {
# flag, so we can use use -g1 for pnacl and nacl-clang compiles.
# gcc nacl is is_nacl && !is_clang, pnacl and nacl-clang are && is_clang.
if (!is_nacl || is_clang) {
@ -81,7 +89,7 @@
}
# TODO(https://crbug.com/1050118): Investigate missing debug info on mac.
@@ -2385,7 +2385,7 @@ config("symbols") {
@@ -2385,7 +2386,7 @@ config("symbols") {
# DWARF info may be corrupt; offsets in a range list entry are in different
# sections" there. Maybe just a bug in nacl_switch_32.S.
if (!is_apple && !is_nacl && current_cpu != "x86" &&