Project

General

Profile

Actions

Bug #9766

closed

loader: 'mbi' may be used uninitialized

Added by Toomas Soome over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
2018-08-24
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

gcc warning:

    ../../../common/multiboot2.c: In function 'multiboot2_exec':
    ../../../common/multiboot2.c:1297:3: warning: 'mbi' may be used uninitialized in this function [-Wmaybe-uninitialized]
       efi_free_loadaddr((vm_offset_t)mbi, EFI_SIZE_TO_PAGES(size));
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Better initialize mbi.

Actions

Also available in: Atom PDF