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 | |
parent | 78ac7ec2b2cf82d883aab667ca5147648bac19e8 (diff) | |
download | justbuild-217da5b8c6ca92577ea64accc527eaa3e5b1f9bb.tar.gz |
grpc: Silence warnings depending on compiler
-rw-r--r-- | etc/defaults/CC/TARGETS.grpc | 10 | ||||
-rw-r--r-- | etc/import/TARGETS.grpc | 8 |
2 files changed, 7 insertions, 11 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"] diff --git a/etc/import/TARGETS.grpc b/etc/import/TARGETS.grpc index 6025f092..70115b89 100644 --- a/etc/import/TARGETS.grpc +++ b/etc/import/TARGETS.grpc @@ -155,14 +155,6 @@ { "type": ["@", "rules", "CC", "library"] , "arguments_config": ["ARCH", "TARGET_ARCH", "COMPILER_FAMILY"] , "name": ["grpc_base_c"] - , "local cflags": - { "type": "case" - , "expr": {"type": "var", "name": "COMPILER_FAMILY", "default": "unknown"} - , "case": - { "clang": ["-Wno-implicit-const-int-float-conversion"] - , "gnu": ["-Wno-stringop-overflow", "-Wno-stringop-truncation"] - } - } , "srcs": [ "src/core/lib/avl/avl.cc" , "src/core/lib/backoff/backoff.cc" |