mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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 <berrange@redhat.com>
This commit is contained in:
parent
78cff68ca3
commit
7d73b11427
@ -278,7 +278,10 @@ reread:
|
|||||||
if (got < sizeof(struct inotify_event))
|
if (got < sizeof(struct inotify_event))
|
||||||
goto cleanup; /* bad */
|
goto cleanup; /* bad */
|
||||||
|
|
||||||
|
VIR_WARNINGS_NO_CAST_ALIGN
|
||||||
e = (struct inotify_event *)tmp;
|
e = (struct inotify_event *)tmp;
|
||||||
|
VIR_WARNINGS_RESET
|
||||||
|
|
||||||
tmp += sizeof(struct inotify_event);
|
tmp += sizeof(struct inotify_event);
|
||||||
got -= sizeof(struct inotify_event);
|
got -= sizeof(struct inotify_event);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user