On Wed, Aug 29, 2018 at 09:06:02PM -0700, Zhenzhong Duan wrote:
> Move reference of ol1e ahead or else we see below warning.
> 
> cc1: warnings being treated as errors
> grant_table.c: In function 'replace_grant_pv_mapping':
> grant_table.c:142: warning: 'ol1e.l1' may be used uninitialized in this 
> function
> 
> Signed-off-by: Zhenzhong Duan <zhenzhong.d...@oracle.com>

Reviewed-by: Wei Liu <wei.l...@citrix.com>

I don't think there is a bug in the code. The compiler isn't smart
enough to figure out ol1e won't be used when okay is false.

Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to