Skip to content

Commit

Permalink
test: fix missing-format-attribute warning
Browse files Browse the repository at this point in the history
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
  • Loading branch information
asalkeld committed Feb 18, 2013
1 parent 6ba0547 commit bd2355f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/format_compare_speed.c
Expand Up @@ -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, ...)
Expand All @@ -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();
Expand Down

0 comments on commit bd2355f

Please sign in to comment.