diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-10-25 11:40:35 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-10-25 14:04:57 +0200 |
commit | 217da5b8c6ca92577ea64accc527eaa3e5b1f9bb (patch) | |
tree | 739674b2e85a9b0baf8355cd47d9e39ae2feb6bb /etc/defaults | |
parent | 78ac7ec2b2cf82d883aab667ca5147648bac19e8 (diff) | |
download | justbuild-217da5b8c6ca92577ea64accc527eaa3e5b1f9bb.tar.gz |
grpc: Silence warnings depending on compiler
Diffstat (limited to 'etc/defaults')
-rw-r--r-- | etc/defaults/CC/TARGETS.grpc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/etc/defaults/CC/TARGETS.grpc b/etc/defaults/CC/TARGETS.grpc index 500bbdb3..36b0bb33 100644 --- a/etc/defaults/CC/TARGETS.grpc +++ b/etc/defaults/CC/TARGETS.grpc @@ -93,12 +93,16 @@ , "-Wno-unused-parameter" , "-Wno-uninitialized" , "-Wno-missing-field-initializers" - , "-Wno-implicit-const-int-float-conversion" - , "-Wno-stringop-overflow" - , "-Wno-stringop-truncation" , "-DOSATOMIC_USE_INLINED=1" ] } + , { "type": "case" + , "expr": {"type": "var", "name": "COMPILER_FAMILY"} + , "case": + { "clang": ["-Wno-implicit-const-int-float-conversion"] + , "gnu": ["-Wno-stringop-overflow", "-Wno-stringop-truncation"] + } + } , { "type": "if" , "cond": {"type": "var", "name": "DEBUG"} , "then": ["-D_DEBUG", "-DDEBUG"] |