зеркало из https://github.com/github/ruby.git
Ignore only warnings known by clang
Clang 17 does not know warning group '-Wgnu-empty-initializer'.
This commit is contained in:
Родитель
97152d44dc
Коммит
e02c7a7340
|
@ -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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче