* grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence

strict-aliasing warning.
	(fsync): Silence cast warning.
This commit is contained in:
Vladimir Serbinenko 2013-11-12 16:09:42 +01:00
parent 1dcb27157d
commit 08772054e9
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
strict-aliasing warning.
(fsync): Silence cast warning.
2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/verify.c: Remove variable length arrays.

View file

@ -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;
}