Re: [Qemu-devel] [PATCH RESEND 3/3] qga: fix compiler warnings (clang 5)

2017-04-07 Thread Philippe Mathieu-Daudé
Hi Michael, On 03/22/2017 06:22 PM, Michael Roth wrote: Quoting Philippe Mathieu-Daudé (2017-03-22 15:48:44) static code analyzer complain: qga/commands-posix.c:2127:9: warning: Null pointer passed as an argument to a 'nonnull' parameter closedir(dp); ^~~~ Reported-by

Re: [Qemu-devel] [PATCH RESEND 3/3] qga: fix compiler warnings (clang 5)

2017-03-22 Thread Michael Roth
Quoting Philippe Mathieu-Daudé (2017-03-22 15:48:44) > static code analyzer complain: > > qga/commands-posix.c:2127:9: warning: Null pointer passed as an argument to a > 'nonnull' parameter > closedir(dp); > ^~~~ > > Reported-by: Clang Static Analyzer > Signed-off-by: Phi

[Qemu-devel] [PATCH RESEND 3/3] qga: fix compiler warnings (clang 5)

2017-03-22 Thread Philippe Mathieu-Daudé
static code analyzer complain: qga/commands-posix.c:2127:9: warning: Null pointer passed as an argument to a 'nonnull' parameter closedir(dp); ^~~~ Reported-by: Clang Static Analyzer Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Marc-André Lureau --- qga/commands-