Fix bootloader compilation errors: add stddef.h and suppress unused parameter/variable warnings

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-28 19:23:09 +00:00
parent 9ca1793090
commit b485902b64

View File

@@ -10,6 +10,7 @@
* That's it. No fancy stuff.
*/
#include <stddef.h>
#include "bootloader.h"
#include "efi.h"
@@ -53,6 +54,7 @@ static EFI_SYSTEM_TABLE* gST = NULL;
* Print a string to the UEFI console
*/
void print_string(const CHAR16* str) {
(void)str;
if (gST && gST->ConOut) {
// In real implementation: gST->ConOut->OutputString(gST->ConOut, (CHAR16*)str);
// For now, this is a stub
@@ -113,6 +115,7 @@ void* get_rsdp(void) {
EFI_STATUS efi_main(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE* SystemTable) {
EFI_STATUS status;
BootInfo boot_info = {0};
(void)boot_info;
gST = SystemTable;