9pfsd: fix release build with old gcc
PATCH 1/1 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 7809132b1a1d ("tools/xen-9pfsd: add 9pfs response generation support")
Signed-off-by Jan Beulich <[email protected]>
tools/9pfsd/io.c +1 -1
@@ -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;
Quoted 5 lines · Jan Beulich
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 <[email protected]>
Reviewed-by Juergen Gross <[email protected]>
Juergen