0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

Filter: Silence some warnings in clang

This commit is contained in:
Ondrej Zajicek 2024-05-30 02:40:55 +02:00
parent 3327d61298
commit a5b4c21d81

View File

@ -621,10 +621,19 @@ FID_WR_PUT(11)
#pragma GCC diagnostic ignored "-Woverride-init" #pragma GCC diagnostic ignored "-Woverride-init"
#endif #endif
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winitializer-overrides"
#endif
static struct sym_scope f_type_method_scopes[] = { static struct sym_scope f_type_method_scopes[] = {
FID_WR_PUT(12) FID_WR_PUT(12)
}; };
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
#if defined(__GNUC__) && __GNUC__ >= 6 #if defined(__GNUC__) && __GNUC__ >= 6
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif #endif