Revision 8b7968f7

b/audio/audio.h
86 86
    uint64_t old_ts;
87 87
} QEMUAudioTimeStamp;
88 88

  
89
void AUD_vlog (const char *cap, const char *fmt, va_list ap);
89
void AUD_vlog (const char *cap, const char *fmt, va_list ap) GCC_FMT_ATTR(2, 0);
90 90
void AUD_log (const char *cap, const char *fmt, ...) GCC_FMT_ATTR(2, 3);
91 91

  
92 92
void AUD_help (void);
b/disas.c
349 349
    return 0;
350 350
}
351 351

  
352
static int monitor_fprintf(FILE *stream, const char *fmt, ...)
352
static int GCC_FMT_ATTR(2, 3)
353
monitor_fprintf(FILE *stream, const char *fmt, ...)
353 354
{
354 355
    va_list ap;
355 356
    va_start(ap, fmt);
b/hw/mips_fulong2e.c
76 76
    const char *initrd_filename;
77 77
} loaderparams;
78 78

  
79
static void prom_set(uint32_t* prom_buf, int index, const char *string, ...)
79
static void GCC_FMT_ATTR(3, 4) prom_set(uint32_t* prom_buf, int index,
80
                                        const char *string, ...)
80 81
{
81 82
    va_list ap;
82 83
    int32_t table_addr;
b/hw/mips_malta.c
654 654

  
655 655
}
656 656

  
657
static void prom_set(uint32_t* prom_buf, int index, const char *string, ...)
657
static void GCC_FMT_ATTR(3, 4) prom_set(uint32_t* prom_buf, int index,
658
                                        const char *string, ...)
658 659
{
659 660
    va_list ap;
660 661
    int32_t table_addr;
b/json-parser.c
91 91
/**
92 92
 * Error handler
93 93
 */
94
static void parse_error(JSONParserContext *ctxt, QObject *token, const char *msg, ...)
94
static void GCC_FMT_ATTR(3, 4) parse_error(JSONParserContext *ctxt,
95
                                           QObject *token, const char *msg, ...)
95 96
{
96 97
    va_list ap;
97 98
    va_start(ap, msg);
b/monitor.c
316 316
    }
317 317
}
318 318

  
319
static int monitor_fprintf(FILE *stream, const char *fmt, ...)
319
static int GCC_FMT_ATTR(2, 3) monitor_fprintf(FILE *stream,
320
                                              const char *fmt, ...)
320 321
{
321 322
    va_list ap;
322 323
    va_start(ap, fmt);
b/monitor.h
49 49

  
50 50
int monitor_get_fd(Monitor *mon, const char *fdname);
51 51

  
52
void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap);
52
void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
53
    GCC_FMT_ATTR(2, 0);
53 54
void monitor_printf(Monitor *mon, const char *fmt, ...) GCC_FMT_ATTR(2, 3);
54 55
void monitor_print_filename(Monitor *mon, const char *filename);
55 56
void monitor_flush(Monitor *mon);
b/qemu-char.h
76 76
                                    void (*init)(struct CharDriverState *s));
77 77
CharDriverState *qemu_chr_open(const char *label, const char *filename, void (*init)(struct CharDriverState *s));
78 78
void qemu_chr_close(CharDriverState *chr);
79
void qemu_chr_printf(CharDriverState *s, const char *fmt, ...);
79
void qemu_chr_printf(CharDriverState *s, const char *fmt, ...)
80
    GCC_FMT_ATTR(2, 3);
80 81
int qemu_chr_write(CharDriverState *s, const uint8_t *buf, int len);
81 82
void qemu_chr_send_event(CharDriverState *s, int event);
82 83
void qemu_chr_add_handlers(CharDriverState *s,
b/qemu-error.h
30 30
void loc_set_cmdline(char **argv, int idx, int cnt);
31 31
void loc_set_file(const char *fname, int lno);
32 32

  
33
void error_vprintf(const char *fmt, va_list ap);
33
void error_vprintf(const char *fmt, va_list ap) GCC_FMT_ATTR(1, 0);
34 34
void error_printf(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
35 35
void error_printf_unless_qmp(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
36 36
void error_print_loc(void);
b/qemu-img.c
39 39
/* Default to cache=writeback as data integrity is not important for qemu-tcg. */
40 40
#define BDRV_O_FLAGS BDRV_O_CACHE_WB
41 41

  
42
static void error(const char *fmt, ...)
42
static void GCC_FMT_ATTR(1, 2) error(const char *fmt, ...)
43 43
{
44 44
    va_list ap;
45 45
    va_start(ap, fmt);
b/qerror.c
218 218
    return qerr;
219 219
}
220 220

  
221
static void qerror_abort(const QError *qerr, const char *fmt, ...)
221
static void GCC_FMT_ATTR(2, 3) qerror_abort(const QError *qerr,
222
                                            const char *fmt, ...)
222 223
{
223 224
    va_list ap;
224 225

  
......
233 234
    abort();
234 235
}
235 236

  
236
static void qerror_set_data(QError *qerr, const char *fmt, va_list *va)
237
static void GCC_FMT_ATTR(2, 0) qerror_set_data(QError *qerr,
238
                                               const char *fmt, va_list *va)
237 239
{
238 240
    QObject *obj;
239 241

  
b/qerror.h
34 34

  
35 35
QError *qerror_new(void);
36 36
QError *qerror_from_info(const char *file, int linenr, const char *func,
37
                         const char *fmt, va_list *va);
37
                         const char *fmt, va_list *va) GCC_FMT_ATTR(4, 0);
38 38
QString *qerror_human(const QError *qerror);
39 39
void qerror_print(QError *qerror);
40 40
void qerror_report_internal(const char *file, int linenr, const char *func,
b/qjson.h
18 18
#include "qobject.h"
19 19
#include "qstring.h"
20 20

  
21
QObject *qobject_from_json(const char *string);
21
QObject *qobject_from_json(const char *string) GCC_FMT_ATTR(1, 0);
22 22
QObject *qobject_from_jsonf(const char *string, ...) GCC_FMT_ATTR(1, 2);
23
QObject *qobject_from_jsonv(const char *string, va_list *ap);
23
QObject *qobject_from_jsonv(const char *string, va_list *ap) GCC_FMT_ATTR(1, 0);
24 24

  
25 25
QString *qobject_to_json(const QObject *obj);
26 26

  
b/slirp/slirp.h
263 263
 long gethostid(void);
264 264
#endif
265 265

  
266
void lprint(const char *, ...);
266
void lprint(const char *, ...) GCC_FMT_ATTR(1, 2);
267 267

  
268 268
#ifndef _WIN32
269 269
#include <netdb.h>

Also available in: Unified diff