diff options
-rw-r--r-- | third_party/BUILD.gn | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn index a24e99e7f0..33a9fa2ebe 100644 --- a/third_party/BUILD.gn +++ b/third_party/BUILD.gn @@ -272,11 +272,21 @@ static_library("fx_lcms2") { } # This is only used for standalone builds. +config("jpeg_warnings") { + visibility = [ ":*" ] + if (is_clang) { + cflags = [ "-Wno-shift-negative-value" ] + } +} + static_library("jpeg") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", ":pdfium_third_party_config", + + # Must be after no_chromium_code for warning flags to be ordered correctly. + ":jpeg_warnings", ] sources = [ "libjpeg/cderror.h", |