diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-02-07 11:47:11 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-02-15 13:50:42 +0000 |
commit | bc83e028b8d12223164263a9f9cfc822ed40f8c8 (patch) | |
tree | fae85a6149c7c0aec512c886c249539c668fb769 /src/cairo-output-stream-private.h | |
parent | 4430157841d4b55061c6af58576cfe6ec66fcfe5 (diff) |
[cairo-output-stream] Add format(printf) markup.
Add CAIRO_PRINTF_FORMAT attribute to the printf-esque output stream
functions, and fixup the one warning caught by the compiler.
Diffstat (limited to 'src/cairo-output-stream-private.h')
-rw-r--r-- | src/cairo-output-stream-private.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cairo-output-stream-private.h b/src/cairo-output-stream-private.h index 2ee43de7..9e9e3ad5 100644 --- a/src/cairo-output-stream-private.h +++ b/src/cairo-output-stream-private.h @@ -115,11 +115,13 @@ _cairo_dtostr (char *buffer, size_t size, double d); cairo_private void _cairo_output_stream_vprintf (cairo_output_stream_t *stream, - const char *fmt, va_list ap); + const char *fmt, + va_list ap) CAIRO_PRINTF_FORMAT ( 2, 0); cairo_private void _cairo_output_stream_printf (cairo_output_stream_t *stream, - const char *fmt, ...); + const char *fmt, + ...) CAIRO_PRINTF_FORMAT (2, 3); cairo_private long _cairo_output_stream_get_position (cairo_output_stream_t *stream); |