Re: [PATCH v2 1/6] virtiofsd: Silence gcc warning

2020-10-07 Thread Dr. David Alan Gilbert
* Dr. David Alan Gilbert (git) (dgilb...@redhat.com) wrote: > From: "Dr. David Alan Gilbert" > > Gcc worries fd might be used unset, in reality it's always set if > fi is set, and only used if fi is set so it's safe. Initialise it to -1 > just to keep gcc happy for now. > > Signed-off-by: Dr. D

Re: [PATCH v2 1/6] virtiofsd: Silence gcc warning

2020-09-09 Thread Ján Tomko
On a Thursday in 2020, Dr. David Alan Gilbert (git) wrote: From: "Dr. David Alan Gilbert" Gcc worries fd might be used unset, in reality it's always set if fi is set, and only used if fi is set so it's safe. Initialise it to -1 just to keep gcc happy for now. Signed-off-by: Dr. David Alan Gil

[PATCH v2 1/6] virtiofsd: Silence gcc warning

2020-08-27 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Gcc worries fd might be used unset, in reality it's always set if fi is set, and only used if fi is set so it's safe. Initialise it to -1 just to keep gcc happy for now. Signed-off-by: Dr. David Alan Gilbert --- tools/virtiofsd/passthrough_ll.c | 2 +- 1 file ch