9pfsd: fix release build with old gcc

Being able to recognize that "par" is reliably initialized on the 1st
loop iteration requires not overly old compilers.

Fixes: 7809132b1a ("tools/xen-9pfsd: add 9pfs response generation support")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
master commit: 984cb316cb
master date: 2024-08-02 08:44:22 +0200
This commit is contained in:
Jan Beulich committed 2024-08-08 13:47:44 +02:00
1 parent e0e84771b6
commit 8ad5a8c5c3
1 file changed
+1 -1
+1 -1
View File
@@ -196,7 +196,7 @@ static void fill_buffer_at(void **data, const char *fmt, ...);
static void vfill_buffer_at(void **data, const char *fmt, va_list ap)
{
const char *f;
const void *par;
const void *par = NULL; /* old gcc */
const char *str_val;
const struct p9_qid *qid;
const struct p9_stat *stat;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.