diff --git a/ChangeLog b/ChangeLog index 89fe81cd8..2931b7a1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-11-12 Vladimir Serbinenko + + * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence + strict-aliasing warning. + (fsync): Silence cast warning. + 2013-11-12 Vladimir Serbinenko * grub-core/commands/verify.c: Remove variable length arrays. diff --git a/grub-core/osdep/windows/hostdisk.c b/grub-core/osdep/windows/hostdisk.c index 256dc1dbd..f396c8700 100644 --- a/grub-core/osdep/windows/hostdisk.c +++ b/grub-core/osdep/windows/hostdisk.c @@ -264,7 +264,8 @@ grub_util_fd_strerror (void) FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, err, 0, (LPTSTR) &tstr, 0, NULL); + NULL, err, 0, (void *) &tstr, + 0, NULL); if (!tstr) return "unknown error"; @@ -466,7 +467,7 @@ grub_util_fopen (const char *path, const char *mode) int fsync (int fno) { HANDLE hnd; - hnd = _get_osfhandle (fno); + hnd = (HANDLE) _get_osfhandle (fno); FlushFileBuffers (hnd); return 0; }