зеркало из https://github.com/github/ruby.git
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:
Родитель
8c6a2cc24e
Коммит
d8be7d463d
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче