summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-08-23 18:52:58 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2023-08-24 19:19:43 +0200
commit70ad8adeb4684c0002e9d395025c6ba65bf70412 (patch)
tree9381e5a9fd9f0c3422c6fb033a28e5461785989a
parentec520d584095db22f5ba050082bf19c1474f8f08 (diff)
downloadjustbuild-70ad8adeb4684c0002e9d395025c6ba65bf70412.tar.gz
imports: Silence warnings of external code
-rw-r--r--etc/defaults/CC/TARGETS.absl2
-rw-r--r--etc/defaults/CC/TARGETS.boringssl27
-rw-r--r--etc/defaults/CC/TARGETS.git216
-rw-r--r--etc/defaults/CC/TARGETS.grpc16
-rw-r--r--etc/defaults/CC/TARGETS.protobuf38
5 files changed, 75 insertions, 24 deletions
diff --git a/etc/defaults/CC/TARGETS.absl b/etc/defaults/CC/TARGETS.absl
index 0b353103..381b8ee1 100644
--- a/etc/defaults/CC/TARGETS.absl
+++ b/etc/defaults/CC/TARGETS.absl
@@ -85,7 +85,6 @@
, "-Wself-assign"
, "-Wshadow-all"
, "-Wshorten-64-to-32"
- , "-Wsign-conversion"
, "-Wstring-conversion"
, "-Wtautological-overlap-compare"
, "-Wtautological-unsigned-zero-compare"
@@ -100,6 +99,7 @@
, "-Wno-float-conversion"
, "-Wno-implicit-float-conversion"
, "-Wno-implicit-int-float-conversion"
+ , "-Wno-sign-conversion"
, "-Wno-unknown-warning-option"
, "-DNOMINMAX"
]
diff --git a/etc/defaults/CC/TARGETS.boringssl b/etc/defaults/CC/TARGETS.boringssl
index 19106589..c405ff21 100644
--- a/etc/defaults/CC/TARGETS.boringssl
+++ b/etc/defaults/CC/TARGETS.boringssl
@@ -1,6 +1,6 @@
{ "defaults":
{ "type": ["CC", "defaults"]
- , "arguments_config": ["OS", "ARCH", "TARGET_ARCH"]
+ , "arguments_config": ["TOOLCHAIN_CONFIG", "OS", "ARCH", "TARGET_ARCH"]
, "base": [["@", "base", "CC", "defaults"]]
, "ADD_CFLAGS":
{ "type": "++"
@@ -34,6 +34,17 @@
]
}
]
+ , [ "COMPILER_FAMILY"
+ , { "type": "lookup"
+ , "map":
+ { "type": "var"
+ , "name": "TOOLCHAIN_CONFIG"
+ , "default": {"type": "empty_map"}
+ }
+ , "key": "FAMILY"
+ , "default": "unknown"
+ }
+ ]
, [ "posix_copts"
, [ "-Wa,--noexecstack"
, "-D_XOPEN_SOURCE=700"
@@ -90,6 +101,20 @@
]
, "default": ["-DOPENSSL_NO_ASM"]
}
+ , { "type": "case"
+ , "expr": {"type": "var", "name": "COMPILER_FAMILY"}
+ , "case":
+ { "gnu":
+ [ "-Wno-dangling-pointer"
+ , "-Wno-array-bounds"
+ , "-Wno-stringop-overflow"
+ ]
+ , "clang":
+ [ "-Wno-unused-but-set-variable"
+ , "-Wno-unknown-warning-option"
+ ]
+ }
+ }
]
}
}
diff --git a/etc/defaults/CC/TARGETS.git2 b/etc/defaults/CC/TARGETS.git2
index 12320267..fd066532 100644
--- a/etc/defaults/CC/TARGETS.git2
+++ b/etc/defaults/CC/TARGETS.git2
@@ -63,10 +63,19 @@
}
, { "type": "case"
, "expr": {"type": "var", "name": "COMPILER_FAMILY"}
- , "case": {"clang": ["-Wdocumentation"]}
+ , "case":
+ { "clang":
+ [ "-Wdocumentation"
+ , "-Wno-documentation-deprecated-sync"
+ , "-Wno-unused-but-set-variable"
+ , "-Wno-unused-but-set-parameter"
+ , "-Wno-single-bit-bitfield-constant-conversion"
+ , "-Wno-unknown-warning-option"
+ ]
+ , "gnu": ["-Wno-dangling-pointer"]
+ }
}
- , [ "-Wno-documentation-deprecated-sync"
- , "-Wno-missing-field-initializers"
+ , [ "-Wno-missing-field-initializers"
, "-Wstrict-aliasing"
, "-Wstrict-prototypes"
, "-Wdeclaration-after-statement"
@@ -81,6 +90,7 @@
, "-Wno-sign-compare"
, "-Wno-unused-parameter"
, "-Wno-uninitialized"
+ , "-Wno-array-parameter"
]
]
}
diff --git a/etc/defaults/CC/TARGETS.grpc b/etc/defaults/CC/TARGETS.grpc
index 86cf6e19..46271c60 100644
--- a/etc/defaults/CC/TARGETS.grpc
+++ b/etc/defaults/CC/TARGETS.grpc
@@ -54,7 +54,10 @@
}
, { "type": "case"
, "expr": {"type": "var", "name": "COMPILER_FAMILY"}
- , "case": {"gnu": ["-Wno-clobbered"]}
+ , "case":
+ { "gnu": ["-Wno-clobbered", "-Wno-type-limits"]
+ , "clang": ["-Wno-atomic-alignment"]
+ }
}
, { "type": "if"
, "cond": {"type": "var", "name": "DEBUG"}
@@ -141,6 +144,17 @@
, "else": ["-Wframe-larger-than=16384"]
}
, { "type": "case"
+ , "expr": {"type": "var", "name": "COMPILER_FAMILY"}
+ , "case":
+ { "gnu":
+ [ "-Wno-array-bounds"
+ , "-Wno-unused-variable"
+ , "-Wno-dangling-pointer"
+ , "-Wno-type-limits"
+ ]
+ }
+ }
+ , { "type": "case"
, "expr": {"type": "var", "name": "OS"}
, "case":
{ "windows":
diff --git a/etc/defaults/CC/TARGETS.protobuf b/etc/defaults/CC/TARGETS.protobuf
index 229c8f31..a4eacb41 100644
--- a/etc/defaults/CC/TARGETS.protobuf
+++ b/etc/defaults/CC/TARGETS.protobuf
@@ -40,26 +40,28 @@
, "/wd4800"
, "/wd4996"
]
- , "gnu":
- [ "-Wall"
- , "-Woverloaded-virtual"
- , "-Wno-sign-compare"
- , "-Wno-sign-conversion"
- , "-Wno-unused-function"
- , "-Wno-deprecated-declarations"
- , "-Wno-nonnull"
- ]
}
, "default":
- [ "-Wall"
- , "-Woverloaded-virtual"
- , "-Wno-sign-compare"
- , "-Wno-sign-conversion"
- , "-Wno-unused-function"
- , "-Wno-deprecated-declarations"
- , "-Wno-deprecated-enum-enum-conversion"
- , "-Wno-nonnull"
- ]
+ { "type": "++"
+ , "$1":
+ [ [ "-Wall"
+ , "-Woverloaded-virtual"
+ , "-Wno-sign-compare"
+ , "-Wno-sign-conversion"
+ , "-Wno-unused-function"
+ , "-Wno-deprecated-declarations"
+ , "-Wno-nonnull"
+ ]
+ , { "type": "case"
+ , "expr": {"type": "var", "name": "COMPILER_FAMILY"}
+ , "case":
+ { "gnu": ["-Wno-attributes"]
+ , "clang": ["-Wno-atomic-alignment"]
+ }
+ , "default": ["-Wno-deprecated-enum-enum-conversion"]
+ }
+ ]
+ }
}
]
}