1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Suppress -Wstring-concatenation

This concatenation of string literals is to not empty the array
initialization even if no counter is declared, but warned by clang as
suspicious.
This commit is contained in:
Nobuyoshi Nakada 2022-07-02 22:41:19 +09:00
parent 8c6a2cc24e
commit d8be7d463d
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -17,7 +17,9 @@
#if USE_DEBUG_COUNTER
static const char *const debug_counter_names[] = {
""
#define DEBUG_COUNTER_NAME_EMPTY "" /* Suppress -Wstring-concatenation */
DEBUG_COUNTER_NAME_EMPTY
#undef DEBUG_COUNTER_NAME_EMPTY
#define RB_DEBUG_COUNTER(name) #name,
#include "debug_counter.h"
#undef RB_DEBUG_COUNTER