diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2012-02-10 14:30:56 +0000 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-03-20 15:30:24 +0100 |
commit | 985ec9d6ec56f15a72ec974ff2fd1f7bab68cd91 (patch) | |
tree | e03feb7a4ef36761c2c03b4f39ee900d0f02c8fa /common/quic.h | |
parent | 9f7d6175e7f8af3cb8b3556affe04d49d35be663 (diff) | |
download | spice-common-985ec9d6ec56f15a72ec974ff2fd1f7bab68cd91.tar.gz spice-common-985ec9d6ec56f15a72ec974ff2fd1f7bab68cd91.tar.xz spice-common-985ec9d6ec56f15a72ec974ff2fd1f7bab68cd91.zip |
Add printf format annotations to all '...' functions
To allow the compile to detect incorrect printf formats, any
var-args function should have a format annotation
* common/macros.h: Helper to define ATTR_PRINTF for code
which can't depend on glib
* common/canvas_base.c, common/lz.h, common/macros.h: Annotate
some var-args methods
Diffstat (limited to 'common/quic.h')
-rw-r--r-- | common/quic.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/quic.h b/common/quic.h index b533f39..ee5fb17 100644 --- a/common/quic.h +++ b/common/quic.h @@ -41,9 +41,9 @@ typedef void *QuicContext; typedef struct QuicUsrContext QuicUsrContext; struct QuicUsrContext { - ATTR_PRINTF(2, 3) void (*error)(QuicUsrContext *usr, const char *fmt, ...); - ATTR_PRINTF(2, 3) void (*warn)(QuicUsrContext *usr, const char *fmt, ...); - ATTR_PRINTF(2, 3) void (*info)(QuicUsrContext *usr, const char *fmt, ...); + SPICE_ATTR_PRINTF(2, 3) void (*error)(QuicUsrContext *usr, const char *fmt, ...); + SPICE_ATTR_PRINTF(2, 3) void (*warn)(QuicUsrContext *usr, const char *fmt, ...); + SPICE_ATTR_PRINTF(2, 3) void (*info)(QuicUsrContext *usr, const char *fmt, ...); void *(*malloc)(QuicUsrContext *usr, int size); void (*free)(QuicUsrContext *usr, void *ptr); int (*more_space)(QuicUsrContext *usr, uint32_t **io_ptr, int rows_completed); |