mirror of
https://git.proxmox.com/git/grub2
synced 2025-05-18 09:50:36 +00:00
2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
Fix warnings in grub-emu when compiling with maximum warning options. * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance of disk to dsk to avoid shadowing.
This commit is contained in:
parent
98e6959dea
commit
f88d801b17
@ -6,6 +6,8 @@
|
|||||||
(grub_arch_modules_addr): Return 0 and not NULL.
|
(grub_arch_modules_addr): Return 0 and not NULL.
|
||||||
* util/misc.c (ENABLE_RELOCATABLE): New definition.
|
* util/misc.c (ENABLE_RELOCATABLE): New definition.
|
||||||
(xstrdup): USe newstr instead of dup.
|
(xstrdup): USe newstr instead of dup.
|
||||||
|
* util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
|
||||||
|
of disk to dsk to avoid shadowing.
|
||||||
|
|
||||||
2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
|
2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
@ -981,10 +981,10 @@ grub_util_biosdisk_get_grub_dev (const char *os_dev)
|
|||||||
struct hd_geometry hdg;
|
struct hd_geometry hdg;
|
||||||
int dos_part = -1;
|
int dos_part = -1;
|
||||||
int bsd_part = -1;
|
int bsd_part = -1;
|
||||||
auto int find_partition (grub_disk_t disk,
|
auto int find_partition (grub_disk_t dsk,
|
||||||
const grub_partition_t partition);
|
const grub_partition_t partition);
|
||||||
|
|
||||||
int find_partition (grub_disk_t disk __attribute__ ((unused)),
|
int find_partition (grub_disk_t dsk __attribute__ ((unused)),
|
||||||
const grub_partition_t partition)
|
const grub_partition_t partition)
|
||||||
{
|
{
|
||||||
struct grub_msdos_partition *pcdata = NULL;
|
struct grub_msdos_partition *pcdata = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user