mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-09 04:13:19 +00:00
Pacify compiler warning
* grub-core/osdep/linux/hostdisk.c (grub_util_find_partition_start_os): Initialise start to avoid spurious compiler warning.
This commit is contained in:
parent
0480665b9d
commit
59b38922a1
@ -1,3 +1,9 @@
|
|||||||
|
2013-12-05 Colin Watson <cjwatson@ubuntu.com>
|
||||||
|
|
||||||
|
* grub-core/osdep/linux/hostdisk.c
|
||||||
|
(grub_util_find_partition_start_os): Initialise start to avoid
|
||||||
|
spurious compiler warning.
|
||||||
|
|
||||||
2013-12-05 Colin Watson <cjwatson@ubuntu.com>
|
2013-12-05 Colin Watson <cjwatson@ubuntu.com>
|
||||||
|
|
||||||
On Linux, read partition start offsets from sysfs if possible, to
|
On Linux, read partition start offsets from sysfs if possible, to
|
||||||
|
@ -181,7 +181,7 @@ out:
|
|||||||
grub_disk_addr_t
|
grub_disk_addr_t
|
||||||
grub_util_find_partition_start_os (const char *dev)
|
grub_util_find_partition_start_os (const char *dev)
|
||||||
{
|
{
|
||||||
grub_disk_addr_t start;
|
grub_disk_addr_t start = 0;
|
||||||
grub_util_fd_t fd;
|
grub_util_fd_t fd;
|
||||||
struct hd_geometry hdg;
|
struct hd_geometry hdg;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user