From 462c75fef13df32adde38af02a8ba59703b87371 Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Sat, 21 Dec 2024 15:41:14 -0800 Subject: [PATCH] Don't print warnings from 3rd party libraries. --- .bazelrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.bazelrc b/.bazelrc index 901bfc3..1dc2f02 100644 --- a/.bazelrc +++ b/.bazelrc @@ -19,6 +19,11 @@ build --cxxopt=-Wno-unused-parameter --host_cxxopt=-Wno-unused-parameter build --cxxopt=-fno-exceptions --host_cxxopt=-fno-exceptions build --cxxopt=-fno-rtti --host_cxxopt=-fno-rtti +# For 3rd party code: Disable warnings entirely. +# They are not actionable and just create noise. +build --per_file_copt=external/.*@-w +build --host_per_file_copt=external/.*@-w + # Platform specific options. build --enable_platform_specific_config build:macos --macos_minimum_os=10.15