summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2024-05-30 02:40:55 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2024-05-30 02:40:55 +0200
commita5b4c21d8138bb533b02a60973b1ff4feedae456 (patch)
tree7f9952d9ac9fa0a2444f8e8470690be486e71290
parent3327d6129896069fcaea00867d5adeaf85865c18 (diff)
Filter: Silence some warnings in clang
-rw-r--r--filter/decl.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/filter/decl.m4 b/filter/decl.m4
index 57bf9454..ea0b0995 100644
--- a/filter/decl.m4
+++ b/filter/decl.m4
@@ -621,10 +621,19 @@ FID_WR_PUT(11)
#pragma GCC diagnostic ignored "-Woverride-init"
#endif
+#if defined(__clang__)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Winitializer-overrides"
+#endif
+
static struct sym_scope f_type_method_scopes[] = {
FID_WR_PUT(12)
};
+#if defined(__clang__)
+#pragma clang diagnostic pop
+#endif
+
#if defined(__GNUC__) && __GNUC__ >= 6
#pragma GCC diagnostic pop
#endif