]> git.ipfire.org Git - thirdparty/qemu.git/commit
fsdev/9p-marshal: move G_GNUC_PRINTF to header
authorSean Wei <me@sean.taipei>
Sat, 14 Jun 2025 02:08:40 +0000 (22:08 -0400)
committerChristian Schoenebeck <qemu_oss@crudebyte.com>
Wed, 16 Jul 2025 12:18:48 +0000 (14:18 +0200)
commit44b540338a3e271866a3d636359bfe6b2edecbb6
treed439deaa265768727b166eb1236752e41e498cfd
parentc079d3a31e45093286c65f8ca5350beb3a4404a9
fsdev/9p-marshal: move G_GNUC_PRINTF to header

v9fs_string_sprintf() is annotated with G_GNUC_PRINTF(2, 3) in
9p-marshal.c, but the prototype in fsdev/9p-marshal.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.01@sean.taipei>
[CS: fix code style (max. 80 chars per line)]
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
fsdev/9p-marshal.c
fsdev/9p-marshal.h