summaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorbabenko <[email protected]>2025-04-14 20:12:08 +0300
committerbabenko <[email protected]>2025-04-14 20:55:33 +0300
commitcf4e6551ac1ad9a5dc8d092c5c5e6d63315f3fac (patch)
treea2f2ffe9f5c7d131848b2129cfb02c3575f2b944 /library/cpp
parentb147484e3469f7dd312ffbc18997c2cc3fae5be4 (diff)
Enable more parentheses-related warnings
commit_hash:e5aee6f170c4d38261597cd10e9b42c2dc58c1f3
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/yt/ya_cpp.make.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/library/cpp/yt/ya_cpp.make.inc b/library/cpp/yt/ya_cpp.make.inc
index 81c522e0d61..59dfb6e1c0d 100644
--- a/library/cpp/yt/ya_cpp.make.inc
+++ b/library/cpp/yt/ya_cpp.make.inc
@@ -1,8 +1,18 @@
# This file should be included in all YT projects (including YT ORM installations).
-IF (NOT MSVC)
+IF (CLANG)
CXXFLAGS(
-Wdeprecated-this-capture
-Wimplicit-fallthrough
+ -Wparentheses
+ -Wno-logical-op-parentheses
+ -Wno-bitwise-op-parentheses
)
+
+ IF (MUSL)
+ CXXFLAGS(
+ --system-header-prefix=endian.h
+ --system-header-prefix=byteswap.h
+ )
+ ENDIF()
ENDIF()