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:
parent
8c6a2cc24e
commit
d8be7d463d
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue