summaryrefslogtreecommitdiff
path: root/etc/defaults
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-10-25 11:40:35 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2022-10-25 14:04:57 +0200
commit217da5b8c6ca92577ea64accc527eaa3e5b1f9bb (patch)
tree739674b2e85a9b0baf8355cd47d9e39ae2feb6bb /etc/defaults
parent78ac7ec2b2cf82d883aab667ca5147648bac19e8 (diff)
downloadjustbuild-217da5b8c6ca92577ea64accc527eaa3e5b1f9bb.tar.gz
grpc: Silence warnings depending on compiler
Diffstat (limited to 'etc/defaults')
-rw-r--r--etc/defaults/CC/TARGETS.grpc10
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"]