diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-09-15 17:44:18 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-09-16 11:37:27 +0200 |
commit | f9e693dd3a23c117b5bdb7e35681a855053dd9e9 (patch) | |
tree | ba7538339ed94ec71329d5cdc7580054b6ca7cbc /etc/defaults | |
parent | 112521bf8aef650487ffc15c640960c3062b2236 (diff) | |
download | justbuild-f9e693dd3a23c117b5bdb7e35681a855053dd9e9.tar.gz |
externals: Selectively disable remaining warnings
Diffstat (limited to 'etc/defaults')
-rw-r--r-- | etc/defaults/CC/TARGETS.grpc | 29 | ||||
-rw-r--r-- | etc/defaults/CC/TARGETS.protobuf | 7 |
2 files changed, 34 insertions, 2 deletions
diff --git a/etc/defaults/CC/TARGETS.grpc b/etc/defaults/CC/TARGETS.grpc index 608966c2..6ece3a68 100644 --- a/etc/defaults/CC/TARGETS.grpc +++ b/etc/defaults/CC/TARGETS.grpc @@ -1,6 +1,7 @@ { "defaults": { "type": ["CC", "defaults"] - , "arguments_config": ["DEBUG", "OS", "COMPILER_FAMILY"] + , "arguments_config": + ["DEBUG", "OS", "ARCH", "TARGET_ARCH", "COMPILER_FAMILY"] , "base": [["@", "base", "CC", "defaults"]] , "ADD_CFLAGS": { "type": "let*" @@ -15,6 +16,13 @@ {"type": "fail", "msg": "Required variable 'OS' is not set."} } ] + , [ "ARCH" + , { "type": "var" + , "name": "ARCH" + , "default": + {"type": "fail", "msg": "Required variable 'ARCH' is not set."} + } + ] ] , "body": { "type": "++" @@ -26,6 +34,7 @@ , "default": [ "-Wall" , "-Wextra" + , "-Wno-unused-parameter" , "-DOSATOMIC_USE_INLINED=1" ] } @@ -63,6 +72,13 @@ {"type": "fail", "msg": "Required variable 'OS' is not set."} } ] + , [ "ARCH" + , { "type": "var" + , "name": "ARCH" + , "default": + {"type": "fail", "msg": "Required variable 'ARCH' is not set."} + } + ] ] , "body": { "type": "++" @@ -74,6 +90,9 @@ , "default": [ "-Wall" , "-Wextra" + , "-Wno-unused-parameter" + , "-Wno-uninitialized" + , "-Wno-missing-field-initializers" , "-DOSATOMIC_USE_INLINED=1" ] } @@ -95,6 +114,14 @@ ] } } + , { "type": "case" + , "expr": + { "type": "var" + , "name": "TARGET_ARCH" + , "default": {"type": "var", "name": "ARCH"} + } + , "case": {"arm": ["-Wno-atomic-alignment"]} + } ] } } diff --git a/etc/defaults/CC/TARGETS.protobuf b/etc/defaults/CC/TARGETS.protobuf index 32f6623d..0980ce25 100644 --- a/etc/defaults/CC/TARGETS.protobuf +++ b/etc/defaults/CC/TARGETS.protobuf @@ -34,7 +34,12 @@ , "/wd4996" ] } - , "default": ["-Wall", "-Wno-sign-compare"] + , "default": + [ "-Wall" + , "-Wno-sign-compare" + , "-Wno-unused-function" + , "-Wno-deprecated-declarations" + ] } ] } |