Use proper form of gnu designated initalizers. This lets
clang compile this files. Approved by: ed (mentor) Silence from: harti (maintainer?)
This commit is contained in:
parent
d376755655
commit
8419ef9a1e
@ -109,7 +109,7 @@ static const char *sig_names[] = {
|
||||
};
|
||||
|
||||
static const char *verb_names[] = {
|
||||
# define UNI_DEBUG_DEFINE(D) [UNI_FAC_##D] #D,
|
||||
# define UNI_DEBUG_DEFINE(D) [UNI_FAC_##D] = #D,
|
||||
UNI_DEBUG_FACILITIES
|
||||
# undef UNI_DEBUG_DEFINE
|
||||
};
|
||||
|
@ -743,7 +743,7 @@ uni_verbose(struct uni *uni, void *varg, u_int fac, const char *fmt, ...)
|
||||
va_list ap;
|
||||
|
||||
static char *facnames[] = {
|
||||
#define UNI_DEBUG_DEFINE(D) [UNI_FAC_##D] #D,
|
||||
#define UNI_DEBUG_DEFINE(D) [UNI_FAC_##D] = #D,
|
||||
UNI_DEBUG_FACILITIES
|
||||
#undef UNI_DEBUG_DEFINE
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user