From f9e693dd3a23c117b5bdb7e35681a855053dd9e9 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Thu, 15 Sep 2022 17:44:18 +0200 Subject: externals: Selectively disable remaining warnings --- etc/defaults/CC/TARGETS.grpc | 29 ++++++++++++++++++++++++++++- etc/defaults/CC/TARGETS.protobuf | 7 ++++++- 2 files changed, 34 insertions(+), 2 deletions(-) (limited to 'etc/defaults') 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" + ] } ] } -- cgit v1.2.3