From 673e49d2bbcc1253cbba78fb69615b594df896af Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Mon, 26 Feb 2024 19:57:13 -0800 Subject: [PATCH] build: Disable warnings in third-party code (#1353) We already disabled warnings-as-errors in third-party code, but this goes futher to completely disable third-party warnings. They are mostly noise, and distracting. If they aren't errors, we shouldn't have our build logs flooded with them. --- packager/third_party/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packager/third_party/CMakeLists.txt b/packager/third_party/CMakeLists.txt index 84556cc328..8455637d20 100644 --- a/packager/third_party/CMakeLists.txt +++ b/packager/third_party/CMakeLists.txt @@ -31,6 +31,9 @@ else() # Surprisingly, both of these are required to satisfy various platforms and # compilers at once. add_compile_options(-Wno-error -Wno-error=all) + # Hide warnings in third-party code. The noise isn't helpful, and this line + # can be commented out if we ever want to see/audit third-party warnings. + add_compile_options(-w) endif() # These all use EXCLUDE_FROM_ALL so that only the referenced targets get built.