diff options
| author | Sean Wei <me@sean.taipei> | 2025-06-13 22:09:20 -0400 |
|---|---|---|
| committer | Christian Schoenebeck <qemu_oss@crudebyte.com> | 2025-07-16 14:18:48 +0200 |
| commit | 44f51c1a3cf435daa82eb757740b59b1fd4fe71c (patch) | |
| tree | 5ef3327f76081a0fc926e75667a36ba94c029cda /hw/9pfs/9p.c | |
| parent | 44b540338a3e271866a3d636359bfe6b2edecbb6 (diff) | |
| download | focaccia-qemu-44f51c1a3cf435daa82eb757740b59b1fd4fe71c.tar.gz focaccia-qemu-44f51c1a3cf435daa82eb757740b59b1fd4fe71c.zip | |
hw/9pfs: move G_GNUC_PRINTF to header
v9fs_path_sprintf() is annotated with G_GNUC_PRINTF(2, 3) in hw/9pfs/9p.c, but the prototype in hw/9pfs/9p.h is missing the attribute, so callers that include only the header do not get format checking. Move the annotation to the header and delete the duplicate in the source file. No behavior change. Signed-off-by: Sean Wei <me@sean.taipei> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20250613.qemu.9p.02@sean.taipei> [CS: fix code style (max. 80 chars per line)] Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Diffstat (limited to 'hw/9pfs/9p.c')
| -rw-r--r-- | hw/9pfs/9p.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c index 8b001b9112..acfa7db4e1 100644 --- a/hw/9pfs/9p.c +++ b/hw/9pfs/9p.c @@ -201,8 +201,7 @@ void v9fs_path_free(V9fsPath *path) } -void G_GNUC_PRINTF(2, 3) -v9fs_path_sprintf(V9fsPath *path, const char *fmt, ...) +void v9fs_path_sprintf(V9fsPath *path, const char *fmt, ...) { va_list ap; |