[PATCH] 9pfsd: fix release build with old gcc

Jan Beulich posted 1 patch 3 months, 3 weeks ago
Failed in applying to current master (apply log)
[PATCH] 9pfsd: fix release build with old gcc
Posted by Jan Beulich 3 months, 3 weeks ago
Being able to recognize that "par" is reliably initialized on the 1st
loop iteration requires not overly old compilers.

Fixes: 7809132b1a1d ("tools/xen-9pfsd: add 9pfs response generation support")
Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/tools/9pfsd/io.c
+++ b/tools/9pfsd/io.c
@@ -196,7 +196,7 @@ static void fill_buffer_at(void **data,
 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;
Re: [PATCH] 9pfsd: fix release build with old gcc
Posted by Jürgen Groß 3 months, 3 weeks ago
On 01.08.24 14:47, Jan Beulich wrote:
> Being able to recognize that "par" is reliably initialized on the 1st
> loop iteration requires not overly old compilers.
> 
> Fixes: 7809132b1a1d ("tools/xen-9pfsd: add 9pfs response generation support")
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Reviewed-by: Juergen Gross <jgross@suse.com>


Juergen