Skip to content

Commit

Permalink
Ignore only warnings known by clang
Browse files Browse the repository at this point in the history
Clang 17 does not know warning group '-Wgnu-empty-initializer'.
  • Loading branch information
nobu committed Jun 24, 2023
1 parent 97152d4 commit e02c7a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addr2line.c
Expand Up @@ -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"
Expand Down

0 comments on commit e02c7a7

Please sign in to comment.