Ignore only warnings known by clang

Clang 17 does not know warning group '-Wgnu-empty-initializer'.
This commit is contained in:
Nobuyoshi Nakada 2023-06-24 18:18:58 +09:00
parent 97152d44dc
commit e02c7a7340
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -8,10 +8,14 @@
**********************************************************************/
#if defined(__clang__)
#if defined(__clang__) && defined(__has_warning)
#if __has_warning("-Wgnu-empty-initializer")
#pragma clang diagnostic ignored "-Wgnu-empty-initializer"
#endif
#if __has_warning("-Wgcc-compat")
#pragma clang diagnostic ignored "-Wgcc-compat"
#endif
#endif
#include "ruby/internal/config.h"
#include "ruby/defines.h"