[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] 9pfsd: fix release build with old gcc
commit 984cb316cb27b53704c607e640a7dd2763b898ab Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Fri Aug 2 08:44:22 2024 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Fri Aug 2 08:44:22 2024 +0200 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 <jbeulich@xxxxxxxx> Reviewed-by: Juergen Gross <jgross@xxxxxxxx> --- tools/9pfsd/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/9pfsd/io.c b/tools/9pfsd/io.c index df1be3df7d..468e0241f5 100644 --- a/tools/9pfsd/io.c +++ b/tools/9pfsd/io.c @@ -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; -- generated by git-patchbot for /home/xen/git/xen.git#master
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |