Skip to content

Commit

Permalink
warnings cleanup: fix initialiser warning on RHEL7
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissie-c committed Dec 21, 2017
1 parent cc9f2b6 commit e5530b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
#if defined(QB_NEED_ATTRIBUTE_SECTION_WORKAROUND) && !defined(S_SPLINT_S)
/* following only needed to force these symbols be global
with ld 2.29: https://bugzilla.redhat.com/1477354 */
struct qb_log_callsite __attribute__((weak)) QB_ATTR_SECTION_START[] = { 0 };
struct qb_log_callsite __attribute__((weak)) QB_ATTR_SECTION_STOP[] = { 0 };
struct qb_log_callsite __attribute__((weak)) QB_ATTR_SECTION_START[] = { {0} };
struct qb_log_callsite __attribute__((weak)) QB_ATTR_SECTION_STOP[] = { {0} };
#endif

static struct qb_log_target conf[QB_LOG_TARGET_MAX];
Expand Down

0 comments on commit e5530b6

Please sign in to comment.