Skip to content

Commit 4a830ca

Browse files
ddunltensorflow-copybara
authored andcommitted
Disable more warnings to make logs cleaner
Taking some inspiration from https://github.com/openxla/xla/blob/main/warnings.bazelrc PiperOrigin-RevId: 673565476
1 parent 6b7ba27 commit 4a830ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,7 @@ build:macos --define std_synchronization_primitives=1
102102
# We silence warnings for code in `external`.
103103
build --per_file_copt=external/.*@-w
104104
build --host_per_file_copt=external/.*@-w
105+
build --copt=-Wno-macro-redefined # absl vs tsl logging clash
106+
build --copt=-Wno-sign-compare # int as loop variable
107+
build --copt=-Wno-deprecated-declarations
108+
build --copt=-Wno-unused-but-set-variable # due to `ifdefs` in ml_dtypes

0 commit comments

Comments
 (0)