diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2024-05-30 02:40:55 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2024-05-30 02:40:55 +0200 |
commit | a5b4c21d8138bb533b02a60973b1ff4feedae456 (patch) | |
tree | 7f9952d9ac9fa0a2444f8e8470690be486e71290 | |
parent | 3327d6129896069fcaea00867d5adeaf85865c18 (diff) |
Filter: Silence some warnings in clang
-rw-r--r-- | filter/decl.m4 | 9 |
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 |