diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index 983b9b0944..15104b6eb9 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -632,6 +632,9 @@ if (is_win) { # Unqualified std::move is pretty common. "-Wno-unqualified-std-cast-call", + + # Needed for nlohmann/json. + "-Wno-deprecated-literal-operator", ] } } else { @@ -666,6 +669,9 @@ if (is_win) { # Needed for compiling Skia with clang-12 "-Wno-psabi", + + # Needed for nlohmann/json. + "-Wno-deprecated-literal-operator", ] if (!is_wasm) { default_warning_flags += [