diff mbox series

9pfsd: fix release build with old gcc

Message ID 29b28ab7-a642-429c-80aa-d09d422ba6cc@suse.com (mailing list archive)
State New
Headers show
Series 9pfsd: fix release build with old gcc | expand

Commit Message

Jan Beulich Aug. 1, 2024, 12:47 p.m. UTC
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>

Comments

Juergen Gross Aug. 1, 2024, 12:54 p.m. UTC | #1
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
diff mbox series

Patch

--- 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;