[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH for-4.7 5/7] tools/kdd: Fix uninitialised variable warning
On 4/27/16 12:01 PM, Andrew Cooper wrote: > Clang warns: > > kdd.c:1031:9: error: variable 'fd' is used uninitialized whenever '||' > condition is true [-Werror,-Wsometimes-uninitialized] > if (argc != 4 > ^~~~~~~~~ > kdd.c:1040:20: note: uninitialized use occurs here > if (select(fd + 1, &fds, NULL, NULL, NULL) > 0) > ^~ > > This situation can't actually happen, as usage() is a terminal path. Annotate > it appropriately. > > Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> > --- Reviewed-by: Doug Goldstein <cardoe@xxxxxxxxxx> -- Doug Goldstein Attachment:
signature.asc _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |