aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2024-11-23 14:06:59 +0300
committerthegeorg <thegeorg@yandex-team.com>2024-11-23 14:19:03 +0300
commit284518c9e820058795b9e7cc44ff26b25f3f455b (patch)
tree5fdaed8ebeb23df177643384ce0748d39a2d858e
parentc46068e0065014b783098fc52829398858dd707e (diff)
downloadydb-284518c9e820058795b9e7cc44ff26b25f3f455b.tar.gz
Unify -Wno arguments generation
commit_hash:33157feb41c65ab08e797adea3b0be5ed6e5bc3f
-rwxr-xr-xbuild/ymake_conf.py17
1 files changed, 7 insertions, 10 deletions
diff --git a/build/ymake_conf.py b/build/ymake_conf.py
index 77bf04e0a9..46043c6d1f 100755
--- a/build/ymake_conf.py
+++ b/build/ymake_conf.py
@@ -1468,15 +1468,7 @@ class GnuCompiler(Compiler):
'-Wall',
'-Wextra',
]
- self.cxx_warnings = [
- # Issue a warning if certain overload is hidden due to inheritance
- '-Woverloaded-virtual',
- ]
-
- # Disable some warnings which will fail compilation at the time
- self.c_warnings += [
- '-Wno-parentheses',
- ]
+ self.cxx_warnings = []
self.c_defines = ['${hide:CPP_FAKEID}']
if self.target.is_android:
@@ -1537,13 +1529,16 @@ class GnuCompiler(Compiler):
self.sfdl_flags.append('-Qunused-arguments')
self.c_warnings += [
+ '-Wno-parentheses',
'-Wno-implicit-const-int-float-conversion',
- # For nvcc to accept the above.
+ # For nvcc to accept the above
'-Wno-unknown-warning-option',
]
self.cxx_warnings += [
'-Wimport-preprocessor-directive-pedantic',
+ # Issue a warning if certain overload is hidden due to inheritance
+ '-Woverloaded-virtual',
'-Wno-ambiguous-reversed-operator',
'-Wno-defaulted-function-deleted',
'-Wno-deprecated-anon-enum-enum-conversion',
@@ -2083,11 +2078,13 @@ class MSVCCompiler(MSVC, Compiler):
c_warnings += [
'-Wno-parentheses',
+ # For nvcc to accept the above
'-Wno-unknown-warning-option',
]
cxx_warnings += [
'-Wimport-preprocessor-directive-pedantic',
+ # Issue a warning if certain overload is hidden due to inheritance
'-Woverloaded-virtual',
'-Wno-ambiguous-reversed-operator',
'-Wno-defaulted-function-deleted',