[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 0/4] 9pfs: local: fix metadata of mapped-file
From: |
Fam Zheng |
Subject: |
Re: [Qemu-devel] [PATCH v2 0/4] 9pfs: local: fix metadata of mapped-file security mode |
Date: |
Wed, 24 May 2017 06:27:46 +0800 |
User-agent: |
Mutt/1.8.0 (2017-02-23) |
On Tue, 05/23 17:04, Greg Kurz wrote:
> > CC hw/9pfs/9p-xattr-user.o
> > In file included from
> > /var/tmp/patchew-tester-tmp-5niyvzwz/src/hw/9pfs/9p-local.c:18:0:
> > /var/tmp/patchew-tester-tmp-5niyvzwz/src/hw/9pfs/9p-local.c: In function
> > ‘local_set_mapped_file_attrat’:
> > /var/tmp/patchew-tester-tmp-5niyvzwz/src/hw/9pfs/9p-util.h:19:5: error:
> > ‘map_dirfd’ may be used uninitialized in this function
> > [-Werror=maybe-uninitialized]
> > close(fd);
> > ^~~~~~~~~
> > /var/tmp/patchew-tester-tmp-5niyvzwz/src/hw/9pfs/9p-local.c:235:9: note:
> > ‘map_dirfd’ was declared here
> > int map_dirfd, map_fd;
> > ^~~~~~~~~
> > cc1: all warnings being treated as errors
>
> This is a false positive AFAICT... what compiler is this ?
It's gcc, as in the snipped package list above.
Fam