Mercurial > hg > dmlib
comparison tools/lib64util.c @ 2383:43e39d9ec42f
Add __attribute__(__format__ ..) specifiers for functions that use printf() style format specifiers.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 09 Jan 2020 14:55:41 +0200 |
parents | 89cb93184175 |
children | 5ffc48a0bebe |
comparison
equal
deleted
inserted
replaced
2382:947eba01f3f3 | 2383:43e39d9ec42f |
---|---|
108 | 108 |
109 return buf; | 109 return buf; |
110 } | 110 } |
111 | 111 |
112 | 112 |
113 __attribute__ ((__format__ (__printf__, 4, 5))) | |
113 static void dmC64ImageDumpLine(FILE *fh, const char *indent, const char *field, const char *fmt, ...) | 114 static void dmC64ImageDumpLine(FILE *fh, const char *indent, const char *field, const char *fmt, ...) |
114 { | 115 { |
115 va_list ap; | 116 va_list ap; |
116 | 117 |
117 fputs(indent, fh); | 118 fputs(indent, fh); |