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.
This commit is contained in:
Joey Parrish 2024-02-26 19:57:13 -08:00 committed by GitHub
parent 6276584de7
commit 673e49d2bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,9 @@ else()
# Surprisingly, both of these are required to satisfy various platforms and # Surprisingly, both of these are required to satisfy various platforms and
# compilers at once. # compilers at once.
add_compile_options(-Wno-error -Wno-error=all) 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() endif()
# These all use EXCLUDE_FROM_ALL so that only the referenced targets get built. # These all use EXCLUDE_FROM_ALL so that only the referenced targets get built.