HomeClusterLabs Projects
Diffusion LibQB ea35cfaa6160

build: avoid too keen -Wsuggest-attribute=format warning

Description

build: avoid too keen -Wsuggest-attribute=format warning

With gcc 5.3.1 20151207:

log.c: In function 'cs_format':
log.c:182:2: warning: function might be possible candidate for

           'gnu_printf' format attribute [-Wsuggest-attribute=format]
len = vsnprintf(str, QB_LOG_MAX_LEN, cs->format, ap_copy);
^

We certainly don't want to disable that warning globally so make use of
diagnostic pragmas for GCC instead in one instance that we cannot
annotate properly.

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>

Details

Provenance
Jan Pokorný <jpokorny@redhat.com>Authored on Feb 3 2016, 9:30 AM
Parents
rQ8b2450edb0ae: Merge pull request #173 from dpejesh/socket
Branches
Unknown
Tags
Unknown

Event Timeline