mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-08-10 16:10:48 +00:00
test: fix missing-format-attribute warning
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
6ba054713e
commit
bd2355f8db
@ -29,6 +29,14 @@
|
||||
|
||||
extern size_t qb_vsnprintf_serialize(char *serialize, size_t max_len, const char *fmt, va_list ap);
|
||||
|
||||
static void
|
||||
store_this_qb(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
|
||||
|
||||
static void
|
||||
store_this_snprintf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
|
||||
|
||||
typedef void (*snprintf_like_func)(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
|
||||
|
||||
|
||||
static void
|
||||
store_this_qb(const char *fmt, ...)
|
||||
@ -55,7 +63,7 @@ store_this_snprintf(const char *fmt, ...)
|
||||
#define ITERATIONS 10000000
|
||||
|
||||
static void
|
||||
test_this_one(const char *name, void (*func)(const char *fmt, ...))
|
||||
test_this_one(const char *name, snprintf_like_func func)
|
||||
{
|
||||
int i;
|
||||
qb_util_stopwatch_t *sw = qb_util_stopwatch_create();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user