From: Daniel P. Berrange Date: Mon, 13 May 2013 11:44:15 +0000 (+0100) Subject: Ignore cast alignment warnings in inotify code for Xen. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7d73b11427c96b8c606850a7564b376e25020cd8;p=libvirt.git Ignore cast alignment warnings in inotify code for Xen. The inotify Xen code causes a cast alignment warning, but this is harmless since the kernel inotify interface will ensure sufficient alignment of the inotify structs in the buffer being read Signed-off-by: Daniel P. Berrange --- diff --git a/src/xen/xen_inotify.c b/src/xen/xen_inotify.c index b032bba139..e13c57298a 100644 --- a/src/xen/xen_inotify.c +++ b/src/xen/xen_inotify.c @@ -278,7 +278,10 @@ reread: if (got < sizeof(struct inotify_event)) goto cleanup; /* bad */ + VIR_WARNINGS_NO_CAST_ALIGN e = (struct inotify_event *)tmp; + VIR_WARNINGS_RESET + tmp += sizeof(struct inotify_event); got -= sizeof(struct inotify_event);