>>> refind: Building testing/refind 0.14.0.2-r1 (using abuild 3.11.0-r1) started Tue, 16 May 2023 17:08:56 +0000 >>> refind: Checking sanity of /home/buildozer/aports/testing/refind/APKBUILD... >>> refind: Analyzing dependencies... >>> refind: Installing for build: build-base bash efibootmgr lsblk gnu-efi-dev linux-headers (1/13) Installing readline (8.2.1-r2) (2/13) Installing bash (5.2.15-r3) Executing bash-5.2.15-r3.post-install (3/13) Installing efivar-libs (38-r4) (4/13) Installing libintl (0.21.1-r9) (5/13) Installing efibootmgr (18-r2) (6/13) Installing libblkid (2.38.1-r8) (7/13) Installing libmount (2.38.1-r8) (8/13) Installing libsmartcols (2.38.1-r8) (9/13) Installing lsblk (2.38.1-r8) (10/13) Installing gnu-efi (3.0.17-r0) (11/13) Installing gnu-efi-dev (3.0.17-r0) (12/13) Installing linux-headers (6.3-r0) (13/13) Installing .makedepends-refind (20230516.170858) Executing busybox-1.36.0-r11.trigger OK: 387 MiB in 115 packages >>> refind: Cleaning up srcdir >>> refind: Cleaning up pkgdir >>> refind: Fetching https://distfiles.alpinelinux.org/distfiles/edge/refind-src-0.14.0.2.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 4539k 100 4539k 0 0 6800k 0 --:--:-- --:--:-- --:--:-- 6806k >>> refind: Fetching https://distfiles.alpinelinux.org/distfiles/edge/refind-src-0.14.0.2.tar.gz >>> refind: Checking sha512sums... refind-src-0.14.0.2.tar.gz: OK 01-missing-always-inline.patch: OK 10-refind-disable-fortify.patch: OK >>> refind: Unpacking /var/cache/distfiles/edge/refind-src-0.14.0.2.tar.gz... >>> refind: 01-missing-always-inline.patch patching file filesystems/zstd/zstd_internal.h >>> refind: 10-refind-disable-fortify.patch patching file libeg/Makefile make MAKEWITH=GNUEFI -C libeg make[1]: Entering directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/libeg' /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -D_FORTIFY_SOURCE=0 -I. -I./../include \ -D__MAKEWITH_GNUEFI -c nanojpeg.c -o nanojpeg.o : warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -D_FORTIFY_SOURCE=0 -I. -I./../include \ -D__MAKEWITH_GNUEFI -c nanojpeg_xtra.c -o nanojpeg_xtra.o : warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -D_FORTIFY_SOURCE=0 -I. -I./../include \ -D__MAKEWITH_GNUEFI -c screen.c -o screen.o : warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition In file included from screen.c:64: screen.c: In function 'egSetScreenSize': screen.c:260:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 260 | LOG(1, LOG_LINE_NORMAL, L"Error: ScreenWidth or ScreenHeight is NULL in egSetScreenSize()!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ In file included from libegint.h:42, from screen.c:58: /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:274:41: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 274 | LOG(2, LOG_LINE_NORMAL, L"Setting GOP mode to %d", ModeNum); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:291:45: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 291 | LOG(2, LOG_LINE_NORMAL, L"Setting GOP mode to %d (%dx%d)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:303:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 303 | Print(L"Error setting graphics mode %d x %d; using default mode!\nAvailable modes are:\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, screen.c:305:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 305 | LOG(1, LOG_LINE_NORMAL, L"Error setting graphics mode %d x %d; using default mode!", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:307:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 307 | LOG(1, LOG_LINE_NORMAL, L"Available modes are:"); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:313:27: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 313 | Print(L"Mode %d: %d x %d\n", ModeNum, | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, screen.c:315:45: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 315 | LOG(1, LOG_LINE_NORMAL, L" Mode %d: %d x %d", ModeNum, | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:332:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 332 | LOG(1, LOG_LINE_NORMAL, L"Setting UGA Draw mode to %d x %d", *ScreenWidth, *ScreenHeight); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:343:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 343 | Print(L"Error setting graphics mode %d x %d; unsupported mode!\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, screen.c:345:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 345 | LOG(1, LOG_LINE_NORMAL, L"Error setting graphics mode %d x %d; unsupported mode!", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c: In function 'egSetTextMode': screen.c:363:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 363 | LOG(1, LOG_LINE_NORMAL, L"Setting text mode to %d", RequestedMode); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:369:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 369 | Print(L"\nError setting text mode %d; available modes are:\n", RequestedMode); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, screen.c:370:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 370 | LOG(1, LOG_LINE_NORMAL, L"Error setting text mode %d; available modes are:", RequestedMode); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:374:27: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 374 | Print(L"Mode %d: %d x %d\n", i, Width, Height); | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, screen.c:375:45: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 375 | LOG(1, LOG_LINE_NORMAL, L" Mode %d: %d x %d", i, Width, Height); | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:378:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 378 | Print(L"Mode %d: Use default mode\n", DONT_CHANGE_TEXT_MODE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, screen.c:379:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 379 | LOG(1, LOG_LINE_NORMAL, L" Mode %d: Use default mode", DONT_CHANGE_TEXT_MODE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c: In function 'egScreenDescription': screen.c:394:38: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 394 | GraphicsInfo = PoolPrint(L"Graphics Output (UEFI), %dx%d", egScreenWidth, egScreenHeight); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:396:38: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 396 | GraphicsInfo = PoolPrint(L"UGA Draw (EFI 1.10), %dx%d", egScreenWidth, egScreenHeight); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:399:33: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 399 | return StrDuplicate(L"Internal Error"); | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src screen.c:402:34: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 402 | TextInfo = PoolPrint(L"(in %dx%d text mode)", ConWidth, ConHeight); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:407:34: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 407 | GraphicsInfo = PoolPrint(L"Text-only console, %dx%d", ConWidth, ConHeight); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c: In function 'egDrawImage': screen.c:498:17: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 498 | Print(L"Error! Can't crop image in egDrawImage()!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, screen.c: In function 'egScreenShot': screen.c:641:14: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 641 | Print(L"Error: Unable to take screen shot\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, screen.c:642:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 642 | LOG(1, LOG_LINE_NORMAL, L"Error: Unable to take screen shot (Image is NULL)"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:650:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 650 | Print(L"Error egEncodeBMP returned NULL\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, screen.c:651:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 651 | LOG(1, LOG_LINE_NORMAL, L"Error: egEncodeBMP returned NULL"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:662:29: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 662 | SPrint(Filename, 80, L"screenshot_%03d.bmp", ssNum++); | ^~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:544:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 544 | IN CONST CHAR16 *fmt, screen.c:668:28: warning: passing argument 2 of 'CheckError' from incompatible pointer type [-Wincompatible-pointer-types] 668 | if (CheckError(Status, L"in egSaveFile()")) { | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from screen.c:59: ../refind/screen.h:106:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 106 | BOOLEAN CheckError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -D_FORTIFY_SOURCE=0 -I. -I./../include \ -D__MAKEWITH_GNUEFI -c image.c -o image.o : warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition In file included from image.c:66: image.c: In function 'egScaleImage': image.c:172:28: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 172 | LOG(3, LOG_LINE_NORMAL, L"Scaling image to %d x %d", NewWidth, NewHeight); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ In file included from libegint.h:42, from image.c:58: /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, image.c:174:31: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 174 | LOG(1, LOG_LINE_NORMAL, L"In egScaleImage(), Image is NULL or a size is 0"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, image.c:183:31: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 183 | LOG(1, LOG_LINE_NORMAL, L"In egScaleImage(), unable to create new image"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, image.c:227:28: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 227 | LOG(3, LOG_LINE_NORMAL, L"Scaling of image complete"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, image.c: In function 'egLoadFile': image.c:255:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 255 | LOG(3, LOG_LINE_NORMAL, L"Loading file '%s'", FileName); | ^~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, image.c:287:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 287 | LOG(4, LOG_LINE_NORMAL, L"Done loading file '%s'", FileName); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, image.c: In function 'egLoadIcon': image.c:404:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 404 | LOG(4, LOG_LINE_NORMAL, L"In egLoadIcon(), have called egFreeImage()"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, image.c:407:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 407 | LOG(1, LOG_LINE_NORMAL, L"Warning: Unable to scale icon from %d x %d to %d x %d from '%s'", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, image.c:409:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 409 | Print(L"Warning: Unable to scale icon from %d x %d to %d x %d from '%s'\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, In file included from libegint.h:47: image.c: In function 'egLoadIconAnyType': libeg.h:78:25: warning: passing argument 1 of 'FindCommaDelimited' from incompatible pointer type [-Wincompatible-pointer-types] 78 | #define ICON_EXTENSIONS L"png,icns,jpg,jpeg,bmp" | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * image.c:428:45: note: in expansion of macro 'ICON_EXTENSIONS' 428 | while (((Extension = FindCommaDelimited(ICON_EXTENSIONS, i++)) != NULL) && (Image == NULL)) { | ^~~~~~~~~~~~~~~ In file included from image.c:62: ../refind/mystrings.h:51:39: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 51 | CHAR16 *FindCommaDelimited(IN CHAR16 *InString, IN UINTN Index); | ~~~~~~~~^~~~~~~~ image.c:429:30: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 429 | FileName = PoolPrint(L"%s\\%s.%s", SubdirName, BaseName, Extension); | ^~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, image.c:431:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 431 | LOG(4, LOG_LINE_NORMAL, L"Have loaded Image in egLoadIconAnyType()"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, In file included from image.c:59: image.c: In function 'egFindIcon': ../refind/global.h:88:27: warning: passing argument 2 of 'egLoadIconAnyType' from incompatible pointer type [-Wincompatible-pointer-types] 88 | #define DEFAULT_ICONS_DIR L"icons" | ^~~~~~~~ | | | short unsigned int * image.c:455:42: note: in expansion of macro 'DEFAULT_ICONS_DIR' 455 | Image = egLoadIconAnyType(SelfDir, DEFAULT_ICONS_DIR, BaseName, IconSize); | ^~~~~~~~~~~~~~~~~ image.c:422:72: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 422 | EG_IMAGE * egLoadIconAnyType(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *SubdirName, IN CHAR16 *BaseName, IN UINTN IconSize) { | ~~~~~~~~^~~~~~~~~~ /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -D_FORTIFY_SOURCE=0 -I. -I./../include \ -D__MAKEWITH_GNUEFI -c text.c -o text.o : warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition text.c: In function 'egLoadFont': text.c:161:13: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 161 | Print(L"Note: Font image file %s is invalid! Using default font!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from libegint.h:42, from text.c:37: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -D_FORTIFY_SOURCE=0 -I. -I./../include \ -D__MAKEWITH_GNUEFI -c load_bmp.c -o load_bmp.o : warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition load_bmp.c: In function 'egEncodeBMP': load_bmp.c:227:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 227 | Print(L"Error allocate %d bytes\n", FileDataLength); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from libegint.h:42, from load_bmp.c:37: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -D_FORTIFY_SOURCE=0 -I. -I./../include \ -D__MAKEWITH_GNUEFI -c load_icns.c -o load_icns.o : warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition load_icns.c: In function 'egDecompressIcnsRLE': load_icns.c:85:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 85 | Print(L" egDecompressIcnsRLE: still need %d bytes of pixel data\n", pp_left); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from libegint.h:42, from load_icns.c:37: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, load_icns.c: In function 'egDecodeICNS': load_icns.c:199:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 199 | Print(L" egLoadICNSIcon: %d bytes of compressed data left\n", CompLen); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -D_FORTIFY_SOURCE=0 -I. -I./../include \ -D__MAKEWITH_GNUEFI -c lodepng.c -o lodepng.o : warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -D_FORTIFY_SOURCE=0 -I. -I./../include \ -D__MAKEWITH_GNUEFI -c lodepng_xtra.c -o lodepng_xtra.o : warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition /usr/bin/ar cq libeg.a nanojpeg.o nanojpeg_xtra.o screen.o image.o text.o load_bmp.o load_icns.o lodepng.o lodepng_xtra.o make[1]: Leaving directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/libeg' make MAKEWITH=GNUEFI -C mok make[1]: Entering directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/mok' /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include \ -D__MAKEWITH_GNUEFI -c guid.c -o guid.o /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include \ -D__MAKEWITH_GNUEFI -c mok.c -o mok.o mok.c: In function 'secure_mode': mok.c:64:39: warning: passing argument 2 of 'EfivarGetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 64 | status = EfivarGetRaw(&global_var, L"SecureBoot", (CHAR8 **) &sb, &charsize); | ^~~~~~~~~~~~~ | | | short unsigned int * In file included from mok.c:50: ../refind/lib.h:96:57: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 96 | EFI_STATUS EfivarGetRaw(IN EFI_GUID *vendor, IN CHAR16 *name, OUT CHAR8 **buffer, OUT UINTN *size OPTIONAL); | ~~~~~~~~^~~~ mok.c:70:39: warning: passing argument 2 of 'EfivarGetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 70 | status = EfivarGetRaw(&global_var, L"SetupMode", (CHAR8 **) &setupmode, &charsize); | ^~~~~~~~~~~~ | | | short unsigned int * ../refind/lib.h:96:57: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 96 | EFI_STATUS EfivarGetRaw(IN EFI_GUID *vendor, IN CHAR16 *name, OUT CHAR8 **buffer, OUT UINTN *size OPTIONAL); | ~~~~~~~~^~~~ /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include \ -D__MAKEWITH_GNUEFI -c security_policy.c -o security_policy.o /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include \ -D__MAKEWITH_GNUEFI -c simple_file.c -o simple_file.o simple_file.c: In function 'simple_file_open_by_handle': simple_file.c:29:13: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 29 | Print(L"Unable to find simple file protocol\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from ../refind/global.h:50, from simple_file.c:7: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, simple_file.c:36:13: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 36 | Print(L"Failed to open drive volume\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, simple_file.c: In function 'generate_path': simple_file.c:79:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 79 | Print(L"Failed to allocate path buffer\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, simple_file.c:87:35: warning: passing argument 2 of 'StrCat' from incompatible pointer type [-Wincompatible-pointer-types] 87 | StrCat(*PathName, L"\\"); | ^~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:365:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 365 | IN CONST CHAR16 *Src simple_file.c: In function 'simple_file_open': simple_file.c:116:13: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 116 | Print(L"Unable to generate load path for %s\n", name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, simple_file.c: In function 'simple_file_read_all': simple_file.c:144:13: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 144 | Print(L"Failed to get file info\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, simple_file.c:152:13: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 152 | Print(L"Failed to allocate buffer of size %d\n", *size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, /usr/bin/ar cq libmok.a guid.o mok.o security_policy.o simple_file.o make[1]: Leaving directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/mok' make MAKEWITH=GNUEFI -C gzip make[1]: Entering directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/gzip' /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include \ -D__MAKEWITH_GNUEFI -c decompress_inflate.c -o decompress_inflate.o In file included from decompress_inflate.c:11: decompress_inflate.c: In function 'gunzip': decompress_inflate.c:48:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 48 | LOG(1, LOG_LINE_NORMAL, L"Out of memory while allocating output buffer"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ In file included from ../refind/lib.h:50, from decompress_inflate.c:9: /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, decompress_inflate.c:59:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 59 | LOG(1, LOG_LINE_NORMAL, L"Out of memory while allocating input buffer"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, decompress_inflate.c:65:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 65 | LOG(1, LOG_LINE_NORMAL, L"Out of memory while allocating z_stream"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, decompress_inflate.c:77:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 77 | LOG(1, LOG_LINE_NORMAL, L"Out of memory while allocating workspace"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, decompress_inflate.c:92:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 92 | LOG(1, LOG_LINE_NORMAL, L"Not a gzip file"); | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, decompress_inflate.c:110:41: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 110 | LOG(1, LOG_LINE_NORMAL, L"header error"); | ^~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, decompress_inflate.c:137:41: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 137 | LOG(1, LOG_LINE_NORMAL, L"read error"); | ^~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, decompress_inflate.c:150:41: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 150 | LOG(1, LOG_LINE_NORMAL, L"write error"); | ^~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, decompress_inflate.c:162:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 162 | LOG(1, LOG_LINE_NORMAL, L"uncompression error"); | ^~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * ../refind/log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, /usr/bin/ar cq libgzip.a decompress_inflate.o make[1]: Leaving directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/gzip' make MAKEWITH=GNUEFI -C EfiLib make[1]: Entering directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/EfiLib' /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include \ -D__MAKEWITH_GNUEFI -c gnuefi-helper.c -o gnuefi-helper.o /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include \ -D__MAKEWITH_GNUEFI -c legacy.c -o legacy.o legacy.c: In function 'BdsBuildLegacyDevNameString': legacy.c:103:9: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 103 | Fmt = L"Primary Master %s"; | ^ legacy.c:110:9: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 110 | Fmt = L"Primary Slave %s"; | ^ legacy.c:117:9: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 117 | Fmt = L"Secondary Master %s"; | ^ legacy.c:124:9: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 124 | Fmt = L"Secondary Slave %s"; | ^ legacy.c:128:9: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 128 | Fmt = L"%s"; | ^ legacy.c:134:10: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 134 | Type = L"Floppy"; | ^ legacy.c:138:10: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 138 | Type = L"Harddisk"; | ^ legacy.c:142:10: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 142 | Type = L"CDROM"; | ^ legacy.c:146:10: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 146 | Type = L"PCMCIAe"; | ^ legacy.c:150:10: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 150 | Type = L"USB"; | ^ legacy.c:154:10: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 154 | Type = L"Network"; | ^ legacy.c:158:10: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 158 | Type = L"BEVe"; | ^ legacy.c:163:10: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 163 | Type = L"Unknown"; | ^ legacy.c:174:41: warning: passing argument 3 of 'AsciiToUnicodeSize' from incompatible pointer type [-Wincompatible-pointer-types] 174 | AsciiToUnicodeSize (StringDesc, 32, Temp); | ^~~~ | | | CHAR16 * {aka int *} legacy.c:59:26: note: expected 'UINT16 *' {aka 'short unsigned int *'} but argument is of type 'CHAR16 *' {aka 'int *'} 59 | OUT UINT16 *UStr | ~~~~~~~~~~~~~~~~~~~^~~~ legacy.c:175:11: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 175 | Fmt = L"%s"; | ^ legacy.c:184:9: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 184 | Fmt = L"%s %d"; | ^ legacy.c: In function 'BdsIsLegacyBootOption': legacy.c:218:19: warning: passing argument 1 of 'StrSize' from incompatible pointer type [-Wincompatible-pointer-types] 218 | Ptr += StrSize ((UINT16 *) Ptr); | ^~~~~~~~~~~~~~ | | | UINT16 * {aka short unsigned int *} In file included from legacy.c:20: /usr/include/efi/efilib.h:388:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'UINT16 *' {aka 'short unsigned int *'} 388 | IN CONST CHAR16 *s1 legacy.c: In function 'BdsFindLegacyBootOptionByDevTypeAndName': legacy.c:278:45: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 278 | SPrint(BootOption, sizeof (BootOption), L"Boot%04x", (UINTN) BootOrder[Index]); | ^~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:544:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 544 | IN CONST CHAR16 *fmt, legacy.c: In function 'BdsCreateLegacyBootOption': legacy.c:384:5: warning: passing argument 1 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 384 | BootString, | ^~~~~~~~~~ | | | UINT16 * {aka short unsigned int *} /usr/include/efi/efilib.h:542:24: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'UINT16 *' {aka 'short unsigned int *'} 542 | OUT CHAR16 *Str, | ~~~~~~~~~~~~~~~^~~ legacy.c:386:5: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 386 | L"Boot%04x", | ^~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:544:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 544 | IN CONST CHAR16 *fmt, legacy.c:464:49: warning: passing argument 2 of 'EfivarSetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 464 | Status = EfivarSetRaw(&EfiGlobalVariableGuid, BootString, | ^~~~~~~~~~ | | | UINT16 * {aka short unsigned int *} In file included from legacy.c:31: ../refind/lib.h:97:51: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'UINT16 *' {aka 'short unsigned int *'} 97 | EFI_STATUS EfivarSetRaw(EFI_GUID *vendor, CHAR16 *name, CHAR8 *buf, UINTN size, BOOLEAN persistent); | ~~~~~~~~^~~~ legacy.c: In function 'BdsAddNonExistingLegacyBootOptions': legacy.c:745:17: warning: passing argument 1 of 'BdsLibGetVariableAndSize' from incompatible pointer type [-Wincompatible-pointer-types] 745 | L"BootOrder", | ^~~~~~~~~~~~ | | | short unsigned int * In file included from legacy.c:29: GenericBdsLib.h:285:28: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 285 | IN CHAR16 *Name, | ~~~~~~~~~~~~~~~~~~~~~^~~~ legacy.c:814:51: warning: passing argument 2 of 'EfivarSetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 814 | Status = EfivarSetRaw(&EfiGlobalVariableGuid, L"BootOrder", | ^~~~~~~~~~~~ | | | short unsigned int * ../refind/lib.h:97:51: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 97 | EFI_STATUS EfivarSetRaw(EFI_GUID *vendor, CHAR16 *name, CHAR8 *buf, UINTN size, BOOLEAN persistent); | ~~~~~~~~^~~~ legacy.c:818:27: warning: passing argument 1 of 'EfiLibDeleteVariable' from incompatible pointer type [-Wincompatible-pointer-types] 818 | EfiLibDeleteVariable (L"BootOrder", &EfiGlobalVariableGuid); | ^~~~~~~~~~~~ | | | short unsigned int * legacy.c:668:16: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 668 | IN CHAR16 *VarName, | ~~~~~~~~~~^~~~~~~ legacy.c: In function 'BdsDeleteBootOption': legacy.c:855:11: warning: passing argument 1 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 855 | SPrint (BootOption, sizeof (BootOption), L"Boot%04x", OptionNumber); | ^~~~~~~~~~ | | | UINT16 * {aka short unsigned int *} /usr/include/efi/efilib.h:542:24: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'UINT16 *' {aka 'short unsigned int *'} 542 | OUT CHAR16 *Str, | ~~~~~~~~~~~~~~~^~~ legacy.c:855:44: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 855 | SPrint (BootOption, sizeof (BootOption), L"Boot%04x", OptionNumber); | ^~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:544:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 544 | IN CONST CHAR16 *fmt, legacy.c:856:34: warning: passing argument 1 of 'EfiLibDeleteVariable' from incompatible pointer type [-Wincompatible-pointer-types] 856 | Status = EfiLibDeleteVariable (BootOption, &EfiGlobalVariableGuid); | ^~~~~~~~~~ | | | UINT16 * {aka short unsigned int *} legacy.c:668:16: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'UINT16 *' {aka 'short unsigned int *'} 668 | IN CHAR16 *VarName, | ~~~~~~~~~~^~~~~~~ legacy.c: In function 'BdsDeleteAllInvalidLegacyBootOptions': legacy.c:934:17: warning: passing argument 1 of 'BdsLibGetVariableAndSize' from incompatible pointer type [-Wincompatible-pointer-types] 934 | L"BootOrder", | ^~~~~~~~~~~~ | | | short unsigned int * GenericBdsLib.h:285:28: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 285 | IN CHAR16 *Name, | ~~~~~~~~~~~~~~~~~~~~~^~~~ legacy.c:944:13: warning: passing argument 1 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 944 | SPrint (BootOption, sizeof (BootOption), L"Boot%04x", BootOrder[Index]); | ^~~~~~~~~~ | | | UINT16 * {aka short unsigned int *} /usr/include/efi/efilib.h:542:24: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'UINT16 *' {aka 'short unsigned int *'} 542 | OUT CHAR16 *Str, | ~~~~~~~~~~~~~~~^~~ legacy.c:944:46: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 944 | SPrint (BootOption, sizeof (BootOption), L"Boot%04x", BootOrder[Index]); | ^~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:544:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 544 | IN CONST CHAR16 *fmt, legacy.c:946:23: warning: passing argument 1 of 'BdsLibGetVariableAndSize' from incompatible pointer type [-Wincompatible-pointer-types] 946 | BootOption, | ^~~~~~~~~~ | | | UINT16 * {aka short unsigned int *} GenericBdsLib.h:285:28: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'UINT16 *' {aka 'short unsigned int *'} 285 | IN CHAR16 *Name, | ~~~~~~~~~~~~~~~~~~~~~^~~~ legacy.c:995:9: warning: passing argument 4 of 'BdsBuildLegacyDevNameString' from incompatible pointer type [-Wincompatible-pointer-types] 995 | BootDesc | ^~~~~~~~ | | | UINT16 * {aka short unsigned int *} legacy.c:90:34: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'UINT16 *' {aka 'short unsigned int *'} 90 | OUT CHAR16 *BootString | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ legacy.c:998:19: warning: passing argument 1 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 998 | if (StrCmp (BootDesc, (UINT16*)(BootOptionVar + sizeof (UINT32) + sizeof (UINT16))) == 0) { | ^~~~~~~~ | | | UINT16 * {aka short unsigned int *} /usr/include/efi/efilib.h:309:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'UINT16 *' {aka 'short unsigned int *'} 309 | IN CONST CHAR16 *s1, legacy.c:998:29: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 998 | if (StrCmp (BootDesc, (UINT16*)(BootOptionVar + sizeof (UINT32) + sizeof (UINT16))) == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | UINT16 * {aka short unsigned int *} /usr/include/efi/efilib.h:310:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'UINT16 *' {aka 'short unsigned int *'} 310 | IN CONST CHAR16 *s2 legacy.c:1028:51: warning: passing argument 2 of 'EfivarSetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 1028 | Status = EfivarSetRaw(&EfiGlobalVariableGuid, L"BootOrder", | ^~~~~~~~~~~~ | | | short unsigned int * ../refind/lib.h:97:51: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 97 | EFI_STATUS EfivarSetRaw(EFI_GUID *vendor, CHAR16 *name, CHAR8 *buf, UINTN size, BOOLEAN persistent); | ~~~~~~~~^~~~ legacy.c:1032:27: warning: passing argument 1 of 'EfiLibDeleteVariable' from incompatible pointer type [-Wincompatible-pointer-types] 1032 | EfiLibDeleteVariable (L"BootOrder", &EfiGlobalVariableGuid); | ^~~~~~~~~~~~ | | | short unsigned int * legacy.c:668:16: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 668 | IN CHAR16 *VarName, | ~~~~~~~~~~^~~~~~~ /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include \ -D__MAKEWITH_GNUEFI -c BdsHelper.c -o BdsHelper.o /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include \ -D__MAKEWITH_GNUEFI -c BdsTianoCore.c -o BdsTianoCore.o BdsTianoCore.c: In function 'BdsLibConnectDevicePath': BdsTianoCore.c:54:29: warning: variable 'PreviousHandle' set but not used [-Wunused-but-set-variable] 54 | EFI_HANDLE PreviousHandle; | ^~~~~~~~~~~~~~ /usr/bin/ar cq libEfiLib.a gnuefi-helper.o legacy.o BdsHelper.o BdsTianoCore.o make[1]: Leaving directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/EfiLib' make MAKEWITH=GNUEFI -C refind make[1]: Entering directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/refind' /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c apple.c -o apple.o apple.c: In function 'GetCsrStatus': apple.c:44:41: warning: passing argument 2 of 'EfivarGetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 44 | Status = EfivarGetRaw(&CsrGuid, L"csr-active-config", (CHAR8**) &ReturnValue, &CsrLength); | ^~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from apple.c:24: lib.h:96:57: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 96 | EFI_STATUS EfivarGetRaw(IN EFI_GUID *vendor, IN CHAR16 *name, OUT CHAR8 **buffer, OUT UINTN *size OPTIONAL); | ~~~~~~~~^~~~ apple.c:50:41: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 50 | SPrint(gCsrStatus, 255, L" Unknown System Integrity Protection version"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from global.h:50, from apple.c:22: /usr/include/efi/efilib.h:544:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 544 | IN CONST CHAR16 *fmt, apple.c:53:61: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 53 | } else if ((Status == EFI_NOT_FOUND) && (StriSubCmp(L"Apple", ST->FirmwareVendor))) { | ^~~~~~~~ | | | short unsigned int * In file included from apple.c:28: mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ apple.c: In function 'RecordgCsrStatus': apple.c:69:37: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 69 | SPrint(gCsrStatus, 255, L" System Integrity Protection is enabled (0x%02x)", CsrStatus); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:544:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 544 | IN CONST CHAR16 *fmt, apple.c:72:37: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 72 | SPrint(gCsrStatus, 255, L" System Integrity Protection is disabled for OS X 10.x (0x%02x)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:544:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 544 | IN CONST CHAR16 *fmt, apple.c:76:37: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 76 | SPrint(gCsrStatus, 255, L" System Integrity Protection is disabled (0x%02x)", CsrStatus); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:544:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 544 | IN CONST CHAR16 *fmt, apple.c:79:37: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 79 | SPrint(gCsrStatus, 255, L" System Integrity Protection status: 0x%02x", CsrStatus); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:544:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 544 | IN CONST CHAR16 *fmt, In file included from apple.c:27: apple.c: In function 'RotateCsrValue': apple.c:96:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 96 | LOG(1, LOG_LINE_SEPARATOR, L"Rotating CSR value"); | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, apple.c:107:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 107 | LOG(1, LOG_LINE_NORMAL, L"CSR value was 0x%04x; setting to 0x%04x", CurrentValue, TargetCsr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, apple.c:108:41: warning: passing argument 2 of 'EfivarSetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 108 | Status = EfivarSetRaw(&CsrGuid, L"csr-active-config", (CHAR8 *) &TargetCsr, 4, TRUE); | ^~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * lib.h:97:51: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 97 | EFI_STATUS EfivarSetRaw(EFI_GUID *vendor, CHAR16 *name, CHAR8 *buf, UINTN size, BOOLEAN persistent); | ~~~~~~~~^~~~ apple.c:111:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 111 | LOG(2, LOG_LINE_NORMAL, L"Successful setting of CSR value of 0x%04x", TargetCsr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, apple.c:113:37: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 113 | SPrint(gCsrStatus, 255, L" Error setting System Integrity Protection code."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:544:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 544 | IN CONST CHAR16 *fmt, apple.c:117:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 117 | LOG(1, LOG_LINE_NORMAL, L"Could not retrieve CSR value or csr_values not set"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, apple.c: In function 'SetAppleOSInfo': apple.c:150:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 150 | LOG(1, LOG_LINE_NORMAL, L"Setting Apple OS information, if applicable"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, apple.c:155:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 155 | LOG(2, LOG_LINE_NORMAL, L"Not a Mac; not setting Apple OS information"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, apple.c:160:39: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 160 | AppleOSVersion = StrDuplicate(L"Mac OS X"); | ^~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src apple.c:163:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 163 | LOG(2, LOG_LINE_NORMAL, L"Setting Apple OS information to '%s'", AppleOSVersion); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, apple.c:173:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 173 | Print(L"Out of resources in SetAppleOSInfo!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, apple.c:181:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 181 | Print(L"Unable to set firmware boot type!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c config.c -o config.o config.c: In function 'ReadFile': config.c:104:25: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 104 | Message = PoolPrint(L"while loading the file '%s'", FileName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from global.h:50, from config.c:59: /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, config.c: In function 'HandleInt': config.c:334:33: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 334 | if (StrCmp(TokenList[1], L"-1") == 0) | ^~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:310:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 310 | IN CONST CHAR16 *s2 config.c: In function 'HandleStrings': config.c:358:51: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 358 | if ((TokenCount > 2) && (StrCmp(TokenList[1], L"+") == 0)) { | ^~~~ | | | short unsigned int * /usr/include/efi/efilib.h:310:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 310 | IN CONST CHAR16 *s2 config.c: In function 'HandleHexes': config.c:388:51: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 388 | if ((TokenCount > 2) && (StrCmp(TokenList[1], L"+") == 0)) { | ^~~~ | | | short unsigned int * /usr/include/efi/efilib.h:310:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 310 | IN CONST CHAR16 *s2 config.c: In function 'HandleBoolean': config.c:445:53: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 445 | if ((TokenCount >= 2) && ((StrCmp(TokenList[1], L"0") == 0) || | ^~~~ | | | short unsigned int * /usr/include/efi/efilib.h:310:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 310 | IN CONST CHAR16 *s2 config.c:446:55: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 446 | MyStriCmp(TokenList[1], L"false") || | ^~~~~~~~ | | | short unsigned int * In file included from config.c:67: mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:447:55: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 447 | MyStriCmp(TokenList[1], L"off"))) { | ^~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c: In function 'SetDefaultByTime': config.c:472:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 472 | Print(L"Warning: Impossible system time: %d:%d\n", CurrentTime.Hour, CurrentTime.Minute); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, In file included from config.c:64: config.c: In function 'ReadConfig': config.h:83:24: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 83 | #define ALSO_SCAN_DIRS L"boot,@/boot" | ^~~~~~~~~~~~~~ | | | short unsigned int * config.c:510:46: note: in expansion of macro 'ALSO_SCAN_DIRS' 510 | GlobalConfig.AlsoScan = StrDuplicate(ALSO_SCAN_DIRS); | ^~~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src global.h:192:33: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 192 | #define MEMTEST_LOCATIONS L"EFI\\tools,EFI\\tools\\memtest86,EFI\\tools\\memtest,EFI\\memtest86,EFI\\memtest" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * config.c:515:32: note: in expansion of macro 'MEMTEST_LOCATIONS' 515 | MergeStrings(&TempStr, MEMTEST_LOCATIONS, L','); | ^~~~~~~~~~~~~~~~~ mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ config.h:74:25: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 74 | #define DONT_SCAN_FILES L"shim.efi,shim-fedora.efi,shim-centos.efi,shimx64.efi,PreLoader.efi,TextMode.efi,ebounce.efi,GraphicsConsole.efi,bootmgr.efi,fbx64.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * config.c:518:51: note: in expansion of macro 'DONT_SCAN_FILES' 518 | GlobalConfig.DontScanFiles = StrDuplicate(DONT_SCAN_FILES); | ^~~~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src global.h:170:33: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 170 | #define MOK_NAMES L"MokManager.efi,HashTool.efi,HashTool-signed.efi,KeyTool.efi,KeyTool-signed.efi,mmx64.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * config.c:523:53: note: in expansion of macro 'MOK_NAMES' 523 | MergeStrings(&(GlobalConfig.DontScanFiles), MOK_NAMES, L','); | ^~~~~~~~~ mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ global.h:180:33: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 180 | #define FWUPDATE_NAMES L"fwupx64.efi" | ^~~~~~~~~~~~~~ | | | short unsigned int * config.c:524:53: note: in expansion of macro 'FWUPDATE_NAMES' 524 | MergeStrings(&(GlobalConfig.DontScanFiles), FWUPDATE_NAMES, L','); | ^~~~~~~~~~~~~~ mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ config.h:82:27: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 82 | #define DONT_SCAN_VOLUMES L"LRS_ESP" | ^~~~~~~~~~ | | | short unsigned int * config.c:526:53: note: in expansion of macro 'DONT_SCAN_VOLUMES' 526 | GlobalConfig.DontScanVolumes = StrDuplicate(DONT_SCAN_VOLUMES); | ^~~~~~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src global.h:194:33: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 194 | #define WINDOWS_RECOVERY_FILES L"EFI\\Microsoft\\Boot\\LrsBootmgr.efi,Recovery:\\EFI\\BOOT\\bootx64.efi,Recovery:\\EFI\\BOOT\\bootia32.efi,\\EFI\\OEM\\Boot\\bootmgfw.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * config.c:527:58: note: in expansion of macro 'WINDOWS_RECOVERY_FILES' 527 | GlobalConfig.WindowsRecoveryFiles = StrDuplicate(WINDOWS_RECOVERY_FILES); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src global.h:196:33: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 196 | #define MACOS_RECOVERY_FILES L"com.apple.recovery.boot\\boot.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * config.c:528:56: note: in expansion of macro 'MACOS_RECOVERY_FILES' 528 | GlobalConfig.MacOSRecoveryFiles = StrDuplicate(MACOS_RECOVERY_FILES); | ^~~~~~~~~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src config.c:530:54: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 530 | GlobalConfig.DefaultSelection = StrDuplicate(L"+"); | ^~~~ | | | short unsigned int * /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src config.c:534:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 534 | Print(L"Configuration file '%s' missing!\n", FileName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, config.c:535:34: warning: passing argument 2 of 'FileExists' from incompatible pointer type [-Wincompatible-pointer-types] 535 | if (!FileExists(SelfDir, L"icons")) { | ^~~~~~~~ | | | short unsigned int * In file included from config.c:60: lib.h:109:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 109 | BOOLEAN FileExists(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *RelativePath); | ~~~~~~~~^~~~~~~~~~~~ config.c:536:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 536 | Print(L"Icons directory doesn't exist; setting textonly = TRUE!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, config.c:551:37: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 551 | if (MyStriCmp(TokenList[0], L"timeout")) { | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:554:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 554 | } else if (MyStriCmp(TokenList[0], L"shutdown_after_timeout")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:557:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 557 | } else if (MyStriCmp(TokenList[0], L"hideui")) { | ^~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:560:41: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 560 | if (MyStriCmp(FlagName, L"banner")) { | ^~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:562:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 562 | } else if (MyStriCmp(FlagName, L"label")) { | ^~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:564:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 564 | } else if (MyStriCmp(FlagName, L"singleuser")) { | ^~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:566:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 566 | } else if (MyStriCmp(FlagName, L"hwtest")) { | ^~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:568:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 568 | } else if (MyStriCmp(FlagName, L"arrows")) { | ^~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:570:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 570 | } else if (MyStriCmp(FlagName, L"hints")) { | ^~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:572:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 572 | } else if (MyStriCmp(FlagName, L"editor")) { | ^~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:574:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 574 | } else if (MyStriCmp(FlagName, L"safemode")) { | ^~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:576:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 576 | } else if (MyStriCmp(FlagName, L"badges")) { | ^~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:578:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 578 | } else if (MyStriCmp(FlagName, L"all")) { | ^~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:581:27: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 581 | Print(L" unknown hideui flag: '%s'\n", FlagName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, config.c:585:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 585 | } else if (MyStriCmp(TokenList[0], L"icons_dir")) { | ^~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:588:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 588 | } else if (MyStriCmp(TokenList[0], L"scanfor")) { | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:596:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 596 | } else if (MyStriCmp(TokenList[0], L"follow_symlinks")) { | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:599:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 599 | } else if (MyStriCmp(TokenList[0], L"use_nvram")) { | ^~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:602:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 602 | } else if (MyStriCmp(TokenList[0], L"uefi_deep_legacy_scan")) { | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:605:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 605 | } else if (MyStriCmp(TokenList[0], L"scan_delay") && (TokenCount == 2)) { | ^~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:608:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 608 | } else if (MyStriCmp(TokenList[0], L"log_level") && (TokenCount == 2)) { | ^~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:611:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 611 | } else if (MyStriCmp(TokenList[0], L"also_scan_dirs")) { | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:614:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 614 | } else if (MyStriCmp(TokenList[0], L"don't_scan_volumes") || | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:615:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 615 | MyStriCmp(TokenList[0], L"dont_scan_volumes")) { | ^~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:624:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 624 | } else if (MyStriCmp(TokenList[0], L"don't_scan_dirs") || | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:625:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 625 | MyStriCmp(TokenList[0], L"dont_scan_dirs")) { | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:628:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 628 | } else if (MyStriCmp(TokenList[0], L"don't_scan_files") || | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:629:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 629 | MyStriCmp(TokenList[0], L"dont_scan_files")) { | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:632:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 632 | } else if (MyStriCmp(TokenList[0], L"don't_scan_firmware") || | ^~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:633:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 633 | MyStriCmp(TokenList[0], L"dont_scan_firmware")) { | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:636:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 636 | } else if (MyStriCmp(TokenList[0], L"don't_scan_tools") || | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:637:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 637 | MyStriCmp(TokenList[0], L"dont_scan_tools")) { | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:640:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 640 | } else if (MyStriCmp(TokenList[0], L"windows_recovery_files")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:643:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 643 | } else if (MyStriCmp(TokenList[0], L"scan_driver_dirs")) { | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:646:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 646 | } else if (MyStriCmp(TokenList[0], L"showtools")) { | ^~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:651:41: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 651 | if (MyStriCmp(FlagName, L"shell")) { | ^~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:653:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 653 | } else if (MyStriCmp(FlagName, L"gptsync")) { | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:655:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 655 | } else if (MyStriCmp(FlagName, L"gdisk")) { | ^~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:657:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 657 | } else if (MyStriCmp(FlagName, L"about")) { | ^~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:659:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 659 | } else if (MyStriCmp(FlagName, L"exit")) { | ^~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:661:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 661 | } else if (MyStriCmp(FlagName, L"reboot")) { | ^~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:663:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 663 | } else if (MyStriCmp(FlagName, L"shutdown")) { | ^~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:665:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 665 | } else if (MyStriCmp(FlagName, L"install")) { | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:667:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 667 | } else if (MyStriCmp(FlagName, L"bootorder")) { | ^~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:669:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 669 | } else if (MyStriCmp(FlagName, L"apple_recovery")) { | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:671:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 671 | } else if (MyStriCmp(FlagName, L"windows_recovery")) { | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:673:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 673 | } else if (MyStriCmp(FlagName, L"mok_tool")) { | ^~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:675:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 675 | } else if (MyStriCmp(FlagName, L"fwupdate")) { | ^~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:677:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 677 | } else if (MyStriCmp(FlagName, L"csr_rotate")) { | ^~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:679:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 679 | } else if (MyStriCmp(FlagName, L"firmware")) { | ^~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:681:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 681 | } else if (MyStriCmp(FlagName, L"memtest86") || MyStriCmp(FlagName, L"memtest")) { | ^~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:681:85: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 681 | } else if (MyStriCmp(FlagName, L"memtest86") || MyStriCmp(FlagName, L"memtest")) { | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:683:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 683 | } else if (MyStriCmp(FlagName, L"netboot")) { | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:685:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 685 | } else if (MyStriCmp(FlagName, L"hidden_tags")) { | ^~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:689:26: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 689 | Print(L" unknown showtools flag: '%s'\n", FlagName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, config.c:693:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 693 | } else if (MyStriCmp(TokenList[0], L"support_gzipped_loaders")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:696:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 696 | } else if (MyStriCmp(TokenList[0], L"banner")) { | ^~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:699:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 699 | } else if (MyStriCmp(TokenList[0], L"banner_scale") && (TokenCount == 2)) { | ^~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:700:41: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 700 | if (MyStriCmp(TokenList[1], L"noscale")) { | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:702:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 702 | } else if (MyStriCmp(TokenList[1], L"fillscreen") || MyStriCmp(TokenList[1], L"fullscreen")) { | ^~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:702:90: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 702 | } else if (MyStriCmp(TokenList[1], L"fillscreen") || MyStriCmp(TokenList[1], L"fullscreen")) { | ^~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:705:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 705 | Print(L" unknown banner_type flag: '%s'\n", TokenList[1]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, config.c:708:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 708 | } else if (MyStriCmp(TokenList[0], L"small_icon_size") && (TokenCount == 2)) { | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:715:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 715 | } else if (MyStriCmp(TokenList[0], L"big_icon_size") && (TokenCount == 2)) { | ^~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:723:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 723 | } else if (MyStriCmp(TokenList[0], L"mouse_size") && (TokenCount == 2)) { | ^~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:729:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 729 | } else if (MyStriCmp(TokenList[0], L"selection_small")) { | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:732:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 732 | } else if (MyStriCmp(TokenList[0], L"selection_big")) { | ^~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:735:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 735 | } else if (MyStriCmp(TokenList[0], L"default_selection")) { | ^~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:742:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 742 | } else if (MyStriCmp(TokenList[0], L"textonly")) { | ^~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:745:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 745 | } else if (MyStriCmp(TokenList[0], L"textmode")) { | ^~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:748:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 748 | } else if (MyStriCmp(TokenList[0], L"resolution") && ((TokenCount == 2) || (TokenCount == 3))) { | ^~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:749:41: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 749 | if (MyStriCmp(TokenList[1], L"max")) { | ^~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:760:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 760 | } else if (MyStriCmp(TokenList[0], L"screensaver")) { | ^~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:763:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 763 | } else if (MyStriCmp(TokenList[0], L"use_graphics_for")) { | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:764:85: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 764 | if ((TokenCount == 2) || ((TokenCount > 2) && (!MyStriCmp(TokenList[1], L"+")))) | ^~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:767:45: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 767 | if (MyStriCmp(TokenList[i], L"osx")) { | ^~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:769:52: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 769 | } else if (MyStriCmp(TokenList[i], L"linux")) { | ^~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:771:52: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 771 | } else if (MyStriCmp(TokenList[i], L"elilo")) { | ^~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:773:52: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 773 | } else if (MyStriCmp(TokenList[i], L"grub")) { | ^~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:775:52: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 775 | } else if (MyStriCmp(TokenList[i], L"windows")) { | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:780:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 780 | } else if (MyStriCmp(TokenList[0], L"font") && (TokenCount == 2)) { | ^~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:783:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 783 | } else if (MyStriCmp(TokenList[0], L"scan_all_linux_kernels")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:786:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 786 | } else if (MyStriCmp(TokenList[0], L"fold_linux_kernels")) { | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:789:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 789 | } else if (MyStriCmp(TokenList[0], L"extra_kernel_version_strings")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:792:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 792 | } else if (MyStriCmp(TokenList[0], L"max_tags")) { | ^~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:795:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 795 | } else if (MyStriCmp(TokenList[0], L"enable_and_lock_vmx")) { | ^~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:798:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 798 | } else if (MyStriCmp(TokenList[0], L"spoof_osx_version")) { | ^~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:801:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 801 | } else if (MyStriCmp(TokenList[0], L"csr_values")) { | ^~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:804:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 804 | } else if (MyStriCmp(TokenList[0], L"write_systemd_vars")) { | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:807:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 807 | } else if (MyStriCmp(TokenList[0], L"include") && (TokenCount == 2) && | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:813:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 813 | } else if (MyStriCmp(TokenList[0], L"enable_mouse")) { | ^~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:819:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 819 | } else if (MyStriCmp(TokenList[0], L"enable_touch")) { | ^~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:825:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 825 | } else if (MyStriCmp(TokenList[0], L"mouse_speed") && (TokenCount == 2)) { | ^~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:840:30: warning: passing argument 2 of 'FileExists' from incompatible pointer type [-Wincompatible-pointer-types] 840 | if (!FileExists(SelfDir, L"icons") && !FileExists(SelfDir, GlobalConfig.IconsDir)) { | ^~~~~~~~ | | | short unsigned int * lib.h:109:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 109 | BOOLEAN FileExists(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *RelativePath); | ~~~~~~~~^~~~~~~~~~~~ config.c:841:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 841 | Print(L"Icons directory doesn't exist; setting textonly = TRUE!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, config.c: In function 'AddSubmenu': config.c:861:90: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 861 | while (((TokenCount = ReadTokenLine(File, &TokenList)) > 0) && (StrCmp(TokenList[0], L"}") != 0)) { | ^~~~ | | | short unsigned int * /usr/include/efi/efilib.h:310:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 310 | IN CONST CHAR16 *s2 config.c:863:37: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 863 | if (MyStriCmp(TokenList[0], L"loader") && (TokenCount > 1)) { // set the boot loader filename | ^~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:868:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 868 | } else if (MyStriCmp(TokenList[0], L"volume") && (TokenCount > 1)) { | ^~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:873:81: warning: pointer type mismatch in conditional expression 873 | (Title != NULL) ? Title : L"Unknown", | ^ config.c:872:57: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 872 | SubEntry->me.Title = PoolPrint(L"Boot %s from %s", | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, config.c:880:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 880 | } else if (MyStriCmp(TokenList[0], L"initrd")) { | ^~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:887:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 887 | } else if (MyStriCmp(TokenList[0], L"options")) { | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:894:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 894 | } else if (MyStriCmp(TokenList[0], L"add_options") && (TokenCount > 1)) { | ^~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:897:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 897 | } else if (MyStriCmp(TokenList[0], L"graphics") && (TokenCount > 1)) { | ^~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:898:65: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 898 | SubEntry->UseGraphicsMode = MyStriCmp(TokenList[1], L"on"); | ^~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:900:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 900 | } else if (MyStriCmp(TokenList[0], L"disabled")) { | ^~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:908:46: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 908 | MergeStrings(&SubEntry->LoadOptions, L"initrd=", L' '); | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ config.c: In function 'AddStanzaEntries': config.c:937:64: warning: pointer type mismatch in conditional expression 937 | (Title != NULL) ? Title : L"Unknown", | ^ config.c:936:40: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 936 | Entry->me.Title = PoolPrint(L"Boot %s from %s", | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, config.c:946:90: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 946 | while (((TokenCount = ReadTokenLine(File, &TokenList)) > 0) && (StrCmp(TokenList[0], L"}") != 0)) { | ^~~~ | | | short unsigned int * /usr/include/efi/efilib.h:310:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 310 | IN CONST CHAR16 *s2 config.c:947:37: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 947 | if (MyStriCmp(TokenList[0], L"loader") && (TokenCount > 1)) { // set the boot loader filename | ^~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); In file included from config.c:62: config.c:949:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 949 | LOG(1, LOG_LINE_NORMAL, L"Adding manual loader for '%s'", Entry->LoaderPath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, config.c:955:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 955 | } else if (MyStriCmp(TokenList[0], L"volume") && (TokenCount > 1)) { | ^~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:961:80: warning: pointer type mismatch in conditional expression 961 | (Title != NULL) ? Title : L"Unknown", | ^ config.c:960:56: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 960 | Entry->me.Title = PoolPrint(L"Boot %s from %s", | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, config.c:970:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 970 | } else if (MyStriCmp(TokenList[0], L"icon") && (TokenCount > 1)) { | ^~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:977:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 977 | } else if (MyStriCmp(TokenList[0], L"initrd") && (TokenCount > 1)) { | ^~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:981:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 981 | } else if (MyStriCmp(TokenList[0], L"options") && (TokenCount > 1)) { | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:985:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 985 | } else if (MyStriCmp(TokenList[0], L"ostype") && (TokenCount > 1)) { | ^~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:990:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 990 | } else if (MyStriCmp(TokenList[0], L"graphics") && (TokenCount > 1)) { | ^~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:991:62: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 991 | Entry->UseGraphicsMode = MyStriCmp(TokenList[1], L"on"); | ^~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:993:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 993 | } else if (MyStriCmp(TokenList[0], L"disabled")) { | ^~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:994:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 994 | LOG(1, LOG_LINE_NORMAL, L"Entry is disabled"); | ^~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, config.c:997:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 997 | } else if (MyStriCmp(TokenList[0], L"firmware_bootnum") && (TokenCount > 1)) { | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:1006:44: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 1006 | } else if (MyStriCmp(TokenList[0], L"submenuentry") && (TokenCount > 1)) { | ^~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:1018:43: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 1018 | MergeStrings(&Entry->LoadOptions, L"initrd=", L' '); | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ config.c:1026:34: warning: passing argument 2 of 'SetLoaderDefaults' from incompatible pointer type [-Wincompatible-pointer-types] 1026 | SetLoaderDefaults(Entry, L"\\EFI\\BOOT\\nemo.efi", CurrentVolume); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from config.c:68: scan.h:64:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 64 | VOID SetLoaderDefaults(LOADER_ENTRY *Entry, CHAR16 *LoaderPath, IN REFIT_VOLUME *Volume); | ~~~~~~~~^~~~~~~~~~ config.c: In function 'ScanUserConfigured': config.c:1043:31: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1043 | LOG(1, LOG_LINE_THIN_SEP, L"Scanning for user-configured boot stanzas"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, config.c:1052:41: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 1052 | if (MyStriCmp(TokenList[0], L"menuentry") && (TokenCount > 1)) { | ^~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c:1062:48: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 1062 | } else if (MyStriCmp(TokenList[0], L"include") && (TokenCount == 2) && | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); config.c: In function 'GenerateOptionsFromEtcFstab': config.c:1084:37: warning: passing argument 2 of 'FileExists' from incompatible pointer type [-Wincompatible-pointer-types] 1084 | if (FileExists(Volume->RootDir, L"\\etc\\fstab")) { | ^~~~~~~~~~~~~~~ | | | short unsigned int * lib.h:109:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 109 | BOOLEAN FileExists(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *RelativePath); | ~~~~~~~~^~~~~~~~~~~~ config.c:1087:44: warning: passing argument 2 of 'ReadFile' from incompatible pointer type [-Wincompatible-pointer-types] 1087 | Status = ReadFile(Volume->RootDir, L"\\etc\\fstab", Fstab, &i); | ^~~~~~~~~~~~~~~ | | | short unsigned int * config.c:91:60: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 91 | EFI_STATUS ReadFile(IN EFI_FILE_HANDLE BaseDir, IN CHAR16 *FileName, IN OUT REFIT_FILE *File, OUT UINTN *size) | ~~~~~~~~^~~~~~~~ config.c:1088:32: warning: passing argument 2 of 'CheckError' from incompatible pointer type [-Wincompatible-pointer-types] 1088 | if (CheckError(Status, L"while reading /etc/fstab")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from config.c:65: screen.h:106:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 106 | BOOLEAN CheckError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ config.c:1098:41: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1098 | LOG(3, LOG_LINE_NORMAL, L"Read line from /etc/fstab holding %d tokens", TokenCount); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, config.c:1100:46: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 1100 | if (StrCmp(TokenList[1], L"\\") == 0) { | ^~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:310:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 310 | IN CONST CHAR16 *s2 config.c:1101:42: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1101 | Root = PoolPrint(L"%s", TokenList[0]); | ^~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, config.c:1102:53: warning: passing argument 2 of 'StrCmp' from incompatible pointer type [-Wincompatible-pointer-types] 1102 | } else if (StrCmp(TokenList[2], L"\\") == 0) { | ^~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:310:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 310 | IN CONST CHAR16 *s2 config.c:1103:42: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1103 | Root = PoolPrint(L"%s=%s", TokenList[0], TokenList[1]); | ^~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, config.c:1109:42: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1109 | Line = PoolPrint(L"\"Boot with normal options\" \"ro root=%s\"\n", Root); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, config.c:1112:42: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1112 | Line = PoolPrint(L"\"Boot into single-user mode\" \"ro root=%s single\"\n", Root); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, config.c: In function 'GenerateOptionsFromPartTypes': config.c:1158:25: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 1158 | WriteStatus = GlobalConfig.DiscoveredRoot->IsMarkedReadOnly ? L"ro" : L"rw"; | ^ config.c:1161:34: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1161 | Line = PoolPrint(L"\"Boot with normal options\" \"%s root=/dev/disk/by-partuuid/%s\"\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, config.c:1165:34: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1165 | Line = PoolPrint(L"\"Boot into single-user mode\" \"%s root=/dev/disk/by-partuuid/%s single\"\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, config.c: In function 'ReadLinuxOptionsFile': config.c:74:34: warning: passing argument 1 of 'FindCommaDelimited' from incompatible pointer type [-Wincompatible-pointer-types] 74 | #define LINUX_OPTIONS_FILENAMES L"refind_linux.conf,refind-linux.conf" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * config.c:1201:46: note: in expansion of macro 'LINUX_OPTIONS_FILENAMES' 1201 | OptionsFilename = FindCommaDelimited(LINUX_OPTIONS_FILENAMES, i++); | ^~~~~~~~~~~~~~~~~~~~~~~ mystrings.h:51:39: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 51 | CHAR16 *FindCommaDelimited(IN CHAR16 *InString, IN UINTN Index); | ~~~~~~~~^~~~~~~~ config.c:1208:40: warning: passing argument 2 of 'CheckError' from incompatible pointer type [-Wincompatible-pointer-types] 1208 | if (CheckError(Status, L"while loading the Linux options file")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * screen.h:106:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 106 | BOOLEAN CheckError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c crc32.c -o crc32.o /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c driver_support.c -o driver_support.o In file included from driver_support.h:28, from driver_support.c:72: driver_support.c: In function 'ScanDriverDir': global.h:203:33: warning: passing argument 3 of 'DirIterNext' from incompatible pointer type [-Wincompatible-pointer-types] 203 | #define LOADER_MATCH_PATTERNS L"*.efi,*.EFI" | ^~~~~~~~~~~~~~ | | | short unsigned int * driver_support.c:552:37: note: in expansion of macro 'LOADER_MATCH_PATTERNS' 552 | while (DirIterNext(&DirIter, 2, LOADER_MATCH_PATTERNS, &DirEntry)) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from driver_support.c:73: lib.h:114:85: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 114 | BOOLEAN DirIterNext(IN OUT REFIT_DIR_ITER *DirIter, IN UINTN FilterMode, IN CHAR16 *FilePattern OPTIONAL, OUT EFI_FILE_INFO **DirEntry); | ~~~~~~~~^~~~~~~~~~~ driver_support.c:556:30: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 556 | FileName = PoolPrint(L"%s\\%s", Path, DirEntry->FileName); | ^~~~~~~~~ | | | short unsigned int * In file included from global.h:50: /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, driver_support.c:558:54: warning: passing argument 3 of 'StartEFIImage' from incompatible pointer type [-Wincompatible-pointer-types] 558 | Status = StartEFIImage(SelfVolume, FileName, L"", DirEntry->FileName, 0, FALSE, TRUE); | ^~~ | | | short unsigned int * In file included from driver_support.c:76: launch_efi.h:80:37: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 80 | IN CHAR16 *LoadOptions, | ~~~~~~~~^~~~~~~~~~~ driver_support.c:564:30: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 564 | FileName = PoolPrint(L"while scanning the %s directory", Path); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, In file included from driver_support.c:77: driver_support.c: In function 'LoadDrivers': driver_support.c:581:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 581 | LOG(1, LOG_LINE_SEPARATOR, L"Loading drivers"); | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, driver_support.c:81:33: warning: passing argument 1 of 'FindCommaDelimited' from incompatible pointer type [-Wincompatible-pointer-types] 81 | #define DRIVER_DIRS L"drivers,drivers_x64" | ^~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * driver_support.c:584:44: note: in expansion of macro 'DRIVER_DIRS' 584 | while ((Directory = FindCommaDelimited(DRIVER_DIRS, i++)) != NULL) { | ^~~~~~~~~~~ In file included from driver_support.c:74: mystrings.h:51:39: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 51 | CHAR16 *FindCommaDelimited(IN CHAR16 *InString, IN UINTN Index); | ~~~~~~~~^~~~~~~~ /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c gpt.c -o gpt.o gpt.c: In function 'ReadGptData': gpt.c:133:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 133 | Print(L"Warning: Can't get BlockIO protocol in ReadGptData().\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from global.h:50, from gpt.h:17, from gpt.c:23: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c icns.c -o icns.o icns.c:56:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 56 | { NULL, L"func_about", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~~ icns.c:56:12: note: (near initialization for 'BuiltinIconTable[0].FileName') icns.c:57:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 57 | { NULL, L"func_reset", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~~ icns.c:57:12: note: (near initialization for 'BuiltinIconTable[1].FileName') icns.c:58:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 58 | { NULL, L"func_shutdown", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~~~~~ icns.c:58:12: note: (near initialization for 'BuiltinIconTable[2].FileName') icns.c:59:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 59 | { NULL, L"func_exit", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~ icns.c:59:12: note: (near initialization for 'BuiltinIconTable[3].FileName') icns.c:60:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 60 | { NULL, L"func_firmware", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~~~~~ icns.c:60:12: note: (near initialization for 'BuiltinIconTable[4].FileName') icns.c:61:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 61 | { NULL, L"func_csr_rotate", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~~~~~~~ icns.c:61:12: note: (near initialization for 'BuiltinIconTable[5].FileName') icns.c:62:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 62 | { NULL, L"func_hidden", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~~~ icns.c:62:12: note: (near initialization for 'BuiltinIconTable[6].FileName') icns.c:63:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 63 | { NULL, L"func_install", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~~~~ icns.c:63:12: note: (near initialization for 'BuiltinIconTable[7].FileName') icns.c:64:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 64 | { NULL, L"func_bootorder", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~~~~~~ icns.c:64:12: note: (near initialization for 'BuiltinIconTable[8].FileName') icns.c:65:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 65 | { NULL, L"tool_shell", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~~ icns.c:65:12: note: (near initialization for 'BuiltinIconTable[9].FileName') icns.c:66:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 66 | { NULL, L"tool_part", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~ icns.c:66:12: note: (near initialization for 'BuiltinIconTable[10].FileName') icns.c:67:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 67 | { NULL, L"tool_rescue", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~~~ icns.c:67:12: note: (near initialization for 'BuiltinIconTable[11].FileName') icns.c:68:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 68 | { NULL, L"tool_apple_rescue", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~~~~~~~~~ icns.c:68:12: note: (near initialization for 'BuiltinIconTable[12].FileName') icns.c:69:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | { NULL, L"tool_windows_rescue", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~~~~~~~~~~~ icns.c:69:12: note: (near initialization for 'BuiltinIconTable[13].FileName') icns.c:70:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 70 | { NULL, L"tool_mok_tool", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~~~~~ icns.c:70:12: note: (near initialization for 'BuiltinIconTable[14].FileName') icns.c:71:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 71 | { NULL, L"tool_fwupdate", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~~~~~ icns.c:71:12: note: (near initialization for 'BuiltinIconTable[15].FileName') icns.c:72:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 72 | { NULL, L"tool_memtest", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~~~~ icns.c:72:12: note: (near initialization for 'BuiltinIconTable[16].FileName') icns.c:73:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 73 | { NULL, L"tool_netboot", ICON_SIZE_SMALL }, | ^~~~~~~~~~~~~~~ icns.c:73:12: note: (near initialization for 'BuiltinIconTable[17].FileName') icns.c:74:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 74 | { NULL, L"vol_internal", ICON_SIZE_BADGE }, | ^~~~~~~~~~~~~~~ icns.c:74:12: note: (near initialization for 'BuiltinIconTable[18].FileName') icns.c:75:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 75 | { NULL, L"vol_external", ICON_SIZE_BADGE }, | ^~~~~~~~~~~~~~~ icns.c:75:12: note: (near initialization for 'BuiltinIconTable[19].FileName') icns.c:76:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 76 | { NULL, L"vol_optical", ICON_SIZE_BADGE }, | ^~~~~~~~~~~~~~ icns.c:76:12: note: (near initialization for 'BuiltinIconTable[20].FileName') icns.c:77:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 77 | { NULL, L"vol_net", ICON_SIZE_BADGE }, | ^~~~~~~~~~ icns.c:77:12: note: (near initialization for 'BuiltinIconTable[21].FileName') icns.c:78:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 78 | { NULL, L"vol_efi", ICON_SIZE_BADGE }, | ^~~~~~~~~~ icns.c:78:12: note: (near initialization for 'BuiltinIconTable[22].FileName') icns.c:79:12: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 79 | { NULL, L"mouse", ICON_SIZE_MOUSE } | ^~~~~~~~ icns.c:79:12: note: (near initialization for 'BuiltinIconTable[23].FileName') In file included from icns.c:40: icns.c: In function 'LoadOSIcon': icns.c:110:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 110 | LOG(4, LOG_LINE_NORMAL, L"Entering LoadOSIcon()"); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ In file included from global.h:50, from icns.c:37: /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, icns.c:114:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 114 | LOG(4, LOG_LINE_NORMAL, L"Trying to find an icon from '%s'", OSIconName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, icns.c:117:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 117 | BaseName = PoolPrint(L"%s_%s", BootLogo ? L"boot" : L"os", CutoutName); | ^~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, icns.c:125:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 125 | BaseName = PoolPrint(L"%s_%s", BootLogo ? L"boot" : L"os", FallbackIconName); | ^~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, icns.c:126:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 126 | LOG(4, LOG_LINE_NORMAL, L"Trying to find an icon from '%s'", BaseName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, icns.c:133:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 133 | BaseName = PoolPrint(L"os_%s", FallbackIconName); | ^~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, icns.c:134:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 134 | LOG(4, LOG_LINE_NORMAL, L"Trying to find an icon from '%s'", BaseName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, icns.c:141:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 141 | LOG(4, LOG_LINE_NORMAL, L"Setting dummy image"); | ^~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c install.c -o install.o In file included from install.c:17: install.c: In function 'DeleteESPList': install.c:40:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 40 | LOG(3, LOG_LINE_NORMAL, L"Deleting list of ESPs"); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * install.c:40:5: note: in expansion of macro 'LOG' 40 | LOG(3, LOG_LINE_NORMAL, L"Deleting list of ESPs"); | ^~~ In file included from global.h:50, from install.c:13: /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c: In function 'FindAllESPs': install.c:58:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 58 | LOG(2, LOG_LINE_NORMAL, L"Searching for ESPs"); | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c: In function 'PickOneESP': install.c:95:41: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 95 | REFIT_MENU_SCREEN InstallMenu = { L"Install rEFInd", NULL, 0, NULL, 0, NULL, 0, NULL, | ^~~~~~~~~~~~~~~~~ install.c:95:41: note: (near initialization for 'InstallMenu.Title') install.c:96:41: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 96 | L"Select a destination and press Enter or", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ install.c:96:41: note: (near initialization for 'InstallMenu.Hint1') install.c:97:41: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 97 | L"press Esc to return to main menu without changes" }; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ install.c:97:41: note: (near initialization for 'InstallMenu.Hint2') install.c:99:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 99 | LOG(2, LOG_LINE_NORMAL, L"Prompting user to select an ESP for installation"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:105:39: warning: passing argument 2 of 'AddMenuInfoLine' from incompatible pointer type [-Wincompatible-pointer-types] 105 | AddMenuInfoLine(&InstallMenu, L"Select a partition and press Enter to install rEFInd"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from install.c:18: menu.h:112:63: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | VOID AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CHAR16 *InfoLine); | ~~~~~~~~^~~~~~~~ install.c:114:34: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 114 | Temp = PoolPrint(L"%s - '%s', aka '%s'", GuidStr, PartName, FsName); | ^~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:116:34: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 116 | Temp = PoolPrint(L"%s - '%s'", GuidStr, FsName); | ^~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:118:34: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 118 | Temp = PoolPrint(L"%s - '%s'", GuidStr, PartName); | ^~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:120:34: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 120 | Temp = PoolPrint(L"%s - '%s'", GuidStr, VolName); | ^~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:122:34: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 122 | Temp = PoolPrint(L"%s - no name", GuidStr); | ^~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:124:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 124 | LOG(3, LOG_LINE_NORMAL, L"Adding '%s' to UI list of ESPs", Temp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:146:30: warning: passing argument 1 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 146 | DisplaySimpleMessage(L"Information", L"No eligible ESPs found"); | ^~~~~~~~~~~~~~ | | | short unsigned int * menu.h:117:35: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 117 | VOID DisplaySimpleMessage(CHAR16 *Title, CHAR16 *Message); | ~~~~~~~~^~~~~ install.c:146:46: warning: passing argument 2 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 146 | DisplaySimpleMessage(L"Information", L"No eligible ESPs found"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:117:50: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 117 | VOID DisplaySimpleMessage(CHAR16 *Title, CHAR16 *Message); | ~~~~~~~~^~~~~~~ install.c:147:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 147 | LOG(2, LOG_LINE_NORMAL, L"No ESPs found"); | ^~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c: In function 'RenameFile': install.c:165:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 165 | LOG(3, LOG_LINE_NORMAL, L"Trying to rename '%s' to '%s'", OldName, NewName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c: In function 'BackupOldFile': install.c:206:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 206 | LOG(3, LOG_LINE_NORMAL, L"Backing up '%s'", FileName); | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:210:25: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 210 | NewName = PoolPrint(L"%s-old", FileName); | ^~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, In file included from install.c:16: install.c: In function 'CreateDirectories': install.h:17:26: warning: passing argument 1 of 'FindCommaDelimited' from incompatible pointer type [-Wincompatible-pointer-types] 17 | #define INST_DIRECTORIES L"\\EFI,\\EFI\\refind,\\EFI\\refind\\icons,\\EFI\\refind\\drivers_x64" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * install.c:225:43: note: in expansion of macro 'INST_DIRECTORIES' 225 | while ((FileName = FindCommaDelimited(INST_DIRECTORIES, i++)) != NULL && Status == EFI_SUCCESS) { | ^~~~~~~~~~~~~~~~ In file included from install.c:19: mystrings.h:51:39: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 51 | CHAR16 *FindCommaDelimited(IN CHAR16 *InString, IN UINTN Index); | ~~~~~~~~^~~~~~~~ install.c: In function 'CopyOneFile': install.c:278:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 278 | LOG(1, LOG_LINE_NORMAL, L"Error %d when copying '%s' to '%s'", Status, SourceName, DestName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c: In function 'CopyDirectory': install.c:295:36: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 295 | SourceFileName = PoolPrint(L"%s\\%s", SourceDirName, DirEntry->FileName); | ^~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:296:34: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 296 | DestFileName = PoolPrint(L"%s\\%s", DestDirName, DirEntry->FileName); | ^~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c: In function 'CopyDrivers': install.c:324:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 324 | LOG(1, LOG_LINE_NORMAL, L"Scanning %d volumes for identifiable filesystems", VolumesCount); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:326:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 326 | LOG(3, LOG_LINE_NORMAL, L"Looking for driver for volume # %d, '%s'", i, Volumes[i]->VolName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:332:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 332 | DriverName = L"btrfs"; | ^ install.c:339:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 339 | DriverName = L"ext2"; | ^ install.c:347:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 347 | DriverName = L"ext2"; | ^ install.c:355:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 355 | DriverName = L"ext4"; | ^ install.c:362:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 362 | DriverName = L"reiserfs"; | ^ install.c:368:77: warning: passing argument 1 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 368 | if ((DriverCopied[FS_TYPE_HFSPLUS] == FALSE) && (!MyStriCmp(L"Apple", ST->FirmwareVendor))) { | ^~~~~~~~ | | | short unsigned int * mystrings.h:43:36: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); install.c:369:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 369 | DriverName = L"hfs"; | ^ install.c:376:40: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 376 | SourceFileName = PoolPrint(L"%s\\%s%s", SourceDirName, DriverName, INST_PLATFORM_EXTENSION); | ^~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:377:38: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 377 | DestFileName = PoolPrint(L"%s\\%s%s", DestDirName, DriverName, INST_PLATFORM_EXTENSION); | ^~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:378:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 378 | LOG(1, LOG_LINE_NORMAL, L"Trying to copy driver for %s", DriverName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c: In function 'CopyFiles': install.c:402:28: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 402 | RefindName = PoolPrint(L"EFI\\refind\\%s", INST_REFIND_NAME); | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:407:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 407 | LOG(1, LOG_LINE_NORMAL, L"Error copying rEFInd binary; installation has failed"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:417:30: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 417 | ConfFile = PoolPrint(L"%s\\refind.conf-sample", SourceDir); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:421:36: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 421 | SourceFile = PoolPrint(L"%s\\refind.conf", SourceDir); | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:425:35: warning: passing argument 2 of 'FileExists' from incompatible pointer type [-Wincompatible-pointer-types] 425 | if (FileExists(TargetDir, L"\\EFI\\refind\\refind.conf")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from install.c:14: lib.h:109:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 109 | BOOLEAN FileExists(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *RelativePath); | ~~~~~~~~^~~~~~~~~~~~ install.c:426:80: warning: passing argument 4 of 'CopyOneFile' from incompatible pointer type [-Wincompatible-pointer-types] 426 | Status = CopyOneFile(SourceVolume->RootDir, SourceFile, TargetDir, L"EFI\\refind\\refind.conf-sample"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * install.c:237:42: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 237 | IN CHAR16 *DestName) { | ~~~~~~~~^~~~~~~~ install.c:428:80: warning: passing argument 4 of 'CopyOneFile' from incompatible pointer type [-Wincompatible-pointer-types] 428 | Status = CopyOneFile(SourceVolume->RootDir, SourceFile, TargetDir, L"EFI\\refind\\refind.conf"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * install.c:237:42: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 237 | IN CHAR16 *DestName) { | ~~~~~~~~^~~~~~~~ install.c:435:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 435 | SourceFile = PoolPrint(L"%s\\icons", SourceDir); | ^~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:436:78: warning: passing argument 4 of 'CopyDirectory' from incompatible pointer type [-Wincompatible-pointer-types] 436 | Status = CopyDirectory(SourceVolume->RootDir, SourceFile, TargetDir, L"EFI\\refind\\icons"); | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * install.c:287:44: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 287 | IN CHAR16 *DestDirName) { | ~~~~~~~~^~~~~~~~~~~ install.c:438:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 438 | LOG(1, LOG_LINE_NORMAL, L"Error %d copying icons directory", Status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:444:38: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 444 | SourceDriversDir = PoolPrint(L"%s\\%s", SourceDir, INST_DRIVERS_SUBDIR); | ^~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:445:38: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 445 | TargetDriversDir = PoolPrint(L"EFI\\refind\\%s", INST_DRIVERS_SUBDIR); | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:448:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 448 | LOG(1, LOG_LINE_NORMAL, L"Error %d copying drivers", Status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c: In function 'CreateFallbackCSV': install.c:468:30: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 468 | Contents = PoolPrint(L"%s,rEFInd Boot Manager,,This is the boot entry for rEFInd\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:479:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 479 | LOG(1, LOG_LINE_NORMAL, L"Error %d when writing BOOT.CSV file", Status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c: In function 'CopyRefindFiles': install.c:486:31: warning: passing argument 2 of 'FileExists' from incompatible pointer type [-Wincompatible-pointer-types] 486 | if (FileExists(TargetDir, L"\\EFI\\refind\\icons")) { | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * lib.h:109:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 109 | BOOLEAN FileExists(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *RelativePath); | ~~~~~~~~^~~~~~~~~~~~ install.c:487:43: warning: passing argument 2 of 'BackupOldFile' from incompatible pointer type [-Wincompatible-pointer-types] 487 | Status = BackupOldFile(TargetDir, L"\\EFI\\refind\\icons"); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * install.c:202:65: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 202 | EFI_STATUS BackupOldFile(IN EFI_FILE_PROTOCOL *BaseDir, CHAR16 *FileName) { | ~~~~~~~~^~~~~~~~ install.c:489:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 489 | LOG(1, LOG_LINE_NORMAL, L"Error when backing up icons"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:495:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 495 | LOG(1, LOG_LINE_NORMAL, L"Error when creating target directory"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:507:38: warning: passing argument 1 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 507 | DisplaySimpleMessage(L"Warning", L"Error copying some files"); | ^~~~~~~~~~ | | | short unsigned int * menu.h:117:35: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 117 | VOID DisplaySimpleMessage(CHAR16 *Title, CHAR16 *Message); | ~~~~~~~~^~~~~ install.c:507:50: warning: passing argument 2 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 507 | DisplaySimpleMessage(L"Warning", L"Error copying some files"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:117:50: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 117 | VOID DisplaySimpleMessage(CHAR16 *Title, CHAR16 *Message); | ~~~~~~~~^~~~~~~ install.c: In function 'FindBootNum': install.c:559:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 559 | VarName = PoolPrint(L"Boot%04x", i++); | ^~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c: In function 'SetBootDefault': install.c:619:40: warning: passing argument 2 of 'EfivarGetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 619 | Status = EfivarGetRaw(&GlobalGuid, L"BootOrder", (CHAR8**) &BootOrder, &VarSize); | ^~~~~~~~~~~~ | | | short unsigned int * lib.h:96:57: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 96 | EFI_STATUS EfivarGetRaw(IN EFI_GUID *vendor, IN CHAR16 *name, OUT CHAR8 **buffer, OUT UINTN *size OPTIONAL); | ~~~~~~~~^~~~ install.c:637:48: warning: passing argument 2 of 'EfivarSetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 637 | Status = EfivarSetRaw(&GlobalGuid, L"BootOrder", (CHAR8*) NewBootOrder, | ^~~~~~~~~~~~ | | | short unsigned int * lib.h:97:51: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 97 | EFI_STATUS EfivarSetRaw(EFI_GUID *vendor, CHAR16 *name, CHAR8 *buf, UINTN size, BOOLEAN persistent); | ~~~~~~~~^~~~ install.c: In function 'CreateNvramEntry': install.c:657:26: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 657 | ProgName = PoolPrint(L"\\EFI\\refind\\%s", INST_REFIND_NAME); | ^~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:659:33: warning: passing argument 3 of 'ConstructBootEntry' from incompatible pointer type [-Wincompatible-pointer-types] 659 | L"rEFInd Boot Manager", (CHAR8**) &Entry, &Size); | ^~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * install.c:581:46: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 581 | CHAR16 *Label, | ~~~~~~~~^~~~~ install.c:665:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 665 | VarName = PoolPrint(L"Boot%04x", BootNum); | ^~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c: In function 'InstallRefind': install.c:690:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 690 | LOG(1, LOG_LINE_NORMAL, L"Installing rEFInd to an ESP"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:699:34: warning: passing argument 1 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 699 | DisplaySimpleMessage(L"Information", L"rEFInd successfully installed"); | ^~~~~~~~~~~~~~ | | | short unsigned int * menu.h:117:35: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 117 | VOID DisplaySimpleMessage(CHAR16 *Title, CHAR16 *Message); | ~~~~~~~~^~~~~ install.c:699:50: warning: passing argument 2 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 699 | DisplaySimpleMessage(L"Information", L"rEFInd successfully installed"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:117:50: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 117 | VOID DisplaySimpleMessage(CHAR16 *Title, CHAR16 *Message); | ~~~~~~~~^~~~~~~ install.c:701:34: warning: passing argument 1 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 701 | DisplaySimpleMessage(L"Warning", L"Problems encountered during installation"); | ^~~~~~~~~~ | | | short unsigned int * menu.h:117:35: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 117 | VOID DisplaySimpleMessage(CHAR16 *Title, CHAR16 *Message); | ~~~~~~~~^~~~~ install.c:701:46: warning: passing argument 2 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 701 | DisplaySimpleMessage(L"Warning", L"Problems encountered during installation"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:117:50: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 117 | VOID DisplaySimpleMessage(CHAR16 *Title, CHAR16 *Message); | ~~~~~~~~^~~~~~~ install.c: In function 'FindBootOrderEntries': install.c:721:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 721 | LOG(1, LOG_LINE_NORMAL, L"Finding boot order entries"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:722:40: warning: passing argument 2 of 'EfivarGetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 722 | Status = EfivarGetRaw(&GlobalGuid, L"BootOrder", (CHAR8**) &BootOrder, &VarSize); | ^~~~~~~~~~~~ | | | short unsigned int * lib.h:96:57: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 96 | EFI_STATUS EfivarGetRaw(IN EFI_GUID *vendor, IN CHAR16 *name, OUT CHAR8 **buffer, OUT UINTN *size OPTIONAL); | ~~~~~~~~^~~~ install.c:728:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 728 | VarName = PoolPrint(L"Boot%04x", BootOrder[i]); | ^~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c: In function 'PickOneBootOption': install.c:789:34: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 789 | REFIT_MENU_SCREEN Menu = { L"Manage EFI Boot Order", NULL, 0, NULL, 0, NULL, 0, NULL, | ^~~~~~~~~~~~~~~~~~~~~~~~ install.c:789:34: note: (near initialization for 'Menu.Title') install.c:790:34: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 790 | L"Select an option and press Enter to make it the default, press '-' or", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ install.c:790:34: note: (near initialization for 'Menu.Hint1') install.c:791:34: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 791 | L"Delete to delete it, or Esc to return to main menu without changes" }; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ install.c:791:34: note: (near initialization for 'Menu.Hint2') install.c:796:32: warning: passing argument 2 of 'AddMenuInfoLine' from incompatible pointer type [-Wincompatible-pointer-types] 796 | AddMenuInfoLine(&Menu, L"Select an option and press Enter to make it the default or '-' to delete it"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:112:63: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | VOID AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CHAR16 *InfoLine); | ~~~~~~~~^~~~~~~~ install.c:802:38: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 802 | Temp = PoolPrint(L"Boot%04x - %s - %s on %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:807:38: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 807 | Temp = PoolPrint(L"Boot%04x - %s - %s", | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:813:34: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 813 | Temp = PoolPrint(L"Boot%04x - %s", | ^~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:838:30: warning: passing argument 1 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 838 | DisplaySimpleMessage(L"Information", L"EFI boot order list is unavailable"); | ^~~~~~~~~~~~~~ | | | short unsigned int * menu.h:117:35: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 117 | VOID DisplaySimpleMessage(CHAR16 *Title, CHAR16 *Message); | ~~~~~~~~^~~~~ install.c:838:46: warning: passing argument 2 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 838 | DisplaySimpleMessage(L"Information", L"EFI boot order list is unavailable"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:117:50: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 117 | VOID DisplaySimpleMessage(CHAR16 *Title, CHAR16 *Message); | ~~~~~~~~^~~~~~~ install.c: In function 'DeleteInvalidBootEntries': install.c:849:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 849 | LOG(1, LOG_LINE_NORMAL, L"Deleting invalid boot entries from internal BootOrder list"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:850:40: warning: passing argument 2 of 'EfivarGetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 850 | Status = EfivarGetRaw(&GlobalGuid, L"BootOrder", (CHAR8**) &BootOrder, &VarSize); | ^~~~~~~~~~~~ | | | short unsigned int * lib.h:96:57: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 96 | EFI_STATUS EfivarGetRaw(IN EFI_GUID *vendor, IN CHAR16 *name, OUT CHAR8 **buffer, OUT UINTN *size OPTIONAL); | ~~~~~~~~^~~~ install.c:855:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 855 | VarName = PoolPrint(L"Boot%04x", BootOrder[i]); | ^~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:863:44: warning: passing argument 2 of 'EfivarSetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 863 | Status = EfivarSetRaw(&GlobalGuid, L"BootOrder", (CHAR8*) NewBootOrder, | ^~~~~~~~~~~~ | | | short unsigned int * lib.h:97:51: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 97 | EFI_STATUS EfivarSetRaw(EFI_GUID *vendor, CHAR16 *name, CHAR8 *buf, UINTN size, BOOLEAN persistent); | ~~~~~~~~^~~~ install.c: In function 'ManageBootorder': install.c:877:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 877 | LOG(1, LOG_LINE_NORMAL, L"Managing boot order list"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:881:26: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 881 | Name = PoolPrint(L"Boot%04x", BootNum); | ^~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:884:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 884 | Message = PoolPrint(L"Boot%04x has been deleted.", BootNum); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:885:30: warning: passing argument 1 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 885 | DisplaySimpleMessage(L"Information", Message); | ^~~~~~~~~~~~~~ | | | short unsigned int * menu.h:117:35: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 117 | VOID DisplaySimpleMessage(CHAR16 *Title, CHAR16 *Message); | ~~~~~~~~^~~~~ install.c:891:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 891 | Message = PoolPrint(L"Boot%04x is now the default EFI boot option.", BootNum); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, install.c:892:30: warning: passing argument 1 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 892 | DisplaySimpleMessage(L"Information", Message); | ^~~~~~~~~~~~~~ | | | short unsigned int * menu.h:117:35: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 117 | VOID DisplaySimpleMessage(CHAR16 *Title, CHAR16 *Message); | ~~~~~~~~^~~~~ /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c launch_efi.c -o launch_efi.o launch_efi.c: In function 'WarnSecureBootError': launch_efi.c:91:14: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 91 | Name = L"the loader"; | ^ launch_efi.c:94:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 94 | Print(L"Secure Boot validation failure loading %s!\n", Name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from global.h:50, from launch_efi.c:58: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_efi.c:97:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 97 | Print(L"\nThis computer is configured with Secure Boot active, but\n%s has failed validation.\n", Name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_efi.c:98:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 98 | Print(L"\nYou can:\n * Launch another boot loader\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_efi.c:99:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 99 | Print(L" * Disable Secure Boot in your firmware\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_efi.c:100:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 100 | Print(L" * Sign %s with a machine owner key (MOK)\n", Name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_efi.c:101:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 101 | Print(L" * Use a MOK utility (often present on the second row) to add a MOK with which\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_efi.c:102:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 102 | Print(L" %s has already been signed.\n", Name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_efi.c:103:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 103 | Print(L" * Use a MOK utility to register %s (\"enroll its hash\") without\n", Name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_efi.c:104:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 104 | Print(L" signing it.\n"); | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_efi.c:105:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 105 | Print(L"\nSee http://www.rodsbooks.com/refind/secureboot.html for more information\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_efi.c: In function 'IsValidLoader': launch_efi.c:124:33: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 124 | CHAR16 *TypeDesc = L"a valid"; | ^~~~~~~~~~ launch_efi.c:152:22: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 152 | TypeDesc = L"a gzipped"; | ^ launch_efi.c:155:22: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 155 | TypeDesc = L"an invalid"; | ^ In file included from launch_efi.c:66: launch_efi.c:158:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 158 | LOG(1, LOG_LINE_NORMAL, L"'%s' is %s loader file", FileName, TypeDesc); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c: In function 'StartEFIImage': launch_efi.c:190:44: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 190 | MergeStrings(&FullLoadOptions, L" ", 0); | ^~~~ | | | short unsigned int * In file included from launch_efi.c:62: mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ launch_efi.c:195:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 195 | LOG(1, LOG_LINE_NORMAL, L"Starting %s", ImageTitle); | ^~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:196:91: warning: pointer type mismatch in conditional expression 196 | LOG(1, LOG_LINE_NORMAL, L"Using load options '%s'", FullLoadOptions ? FullLoadOptions : L""); | ^ log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ launch_efi.c:196:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 196 | LOG(1, LOG_LINE_NORMAL, L"Using load options '%s'", FullLoadOptions ? FullLoadOptions : L""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:198:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 198 | LOG(1, LOG_LINE_NORMAL, L"Note: %s is a driver", ImageTitle); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:200:104: warning: pointer type mismatch in conditional expression 200 | Print(L"Starting %s\nUsing load options '%s'\n", ImageTitle, FullLoadOptions ? FullLoadOptions : L""); | ^ launch_efi.c:200:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 200 | Print(L"Starting %s\nUsing load options '%s'\n", ImageTitle, FullLoadOptions ? FullLoadOptions : L""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_efi.c:231:41: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 231 | LOG(1, LOG_LINE_NORMAL, L"gunzip returned '%d'; ReadSize of '%ld'", gzStatus, ReadSize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:236:45: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 236 | LOG(1, LOG_LINE_NORMAL, L"gunzip failure!"); | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:254:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 254 | LOG(3, LOG_LINE_NORMAL, L"Employing Shim LoadImage() hack"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:259:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 259 | Print(L"Invalid loader file!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_efi.c:260:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 260 | LOG(1, LOG_LINE_NORMAL, L"Invalid loader file!"); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:264:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 264 | LOG(1, LOG_LINE_NORMAL, L"Secure boot error while loading '%s'; Status = %d", ImageTitle, Status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:268:27: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 268 | ErrorInfo = PoolPrint(L"while loading %s", ImageTitle); | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:276:28: warning: passing argument 2 of 'CheckError' from incompatible pointer type [-Wincompatible-pointer-types] 276 | if (CheckError(Status, L"while getting a LoadedImageProtocol handle")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from launch_efi.c:59: screen.h:106:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 106 | BOOLEAN CheckError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ launch_efi.c:287:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 287 | LOG(1, LOG_LINE_NORMAL, L"Setting systemd's LoaderDevicePartUUID variable to %s", EspGUID); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:288:45: warning: passing argument 2 of 'EfivarSetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 288 | Status = EfivarSetRaw(&SystemdGuid, L"LoaderDevicePartUUID", (CHAR8 *) EspGUID, | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from launch_efi.c:60: lib.h:97:51: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 97 | EFI_STATUS EfivarSetRaw(EFI_GUID *vendor, CHAR16 *name, CHAR8 *buf, UINTN size, BOOLEAN persistent); | ~~~~~~~~^~~~ launch_efi.c:292:17: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 292 | L"Error %d when trying to set LoaderDevicePartUUID EFI variable", Status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:298:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 298 | LOG(1, LOG_LINE_NORMAL, L"Launching '%s'", ImageTitle); | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:305:27: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 305 | ErrorInfo = PoolPrint(L"returned from %s", ImageTitle); | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:317:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 317 | LOG(1, LOG_LINE_NORMAL, L"Program has returned %d", Status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:330:31: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 330 | LOG(1, LOG_LINE_THIN_SEP, L"Next loader"); | ^~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c: In function 'RebootIntoFirmware': launch_efi.c:343:37: warning: passing argument 2 of 'EfivarGetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 343 | err = EfivarGetRaw(&GlobalGuid, L"OsIndications", &b, &size); | ^~~~~~~~~~~~~~~~ | | | short unsigned int * lib.h:96:57: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 96 | EFI_STATUS EfivarGetRaw(IN EFI_GUID *vendor, IN CHAR16 *name, OUT CHAR8 **buffer, OUT UINTN *size OPTIONAL); | ~~~~~~~~^~~~ launch_efi.c:348:37: warning: passing argument 2 of 'EfivarSetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 348 | err = EfivarSetRaw(&GlobalGuid, L"OsIndications", (CHAR8 *)&osind, sizeof(UINT64), TRUE); | ^~~~~~~~~~~~~~~~ | | | short unsigned int * lib.h:97:51: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 97 | EFI_STATUS EfivarSetRaw(EFI_GUID *vendor, CHAR16 *name, CHAR8 *buf, UINTN size, BOOLEAN persistent); | ~~~~~~~~^~~~ launch_efi.c:352:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 352 | LOG(1, LOG_LINE_SEPARATOR, L"Rebooting into the computer's firmware"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:356:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 356 | LOG(1, LOG_LINE_NORMAL, L"Error calling ResetSystem: %r", err); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:357:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 357 | Print(L"Error calling ResetSystem: %r\n", err); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_efi.c: In function 'RebootIntoLoader': launch_efi.c:366:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 366 | LOG(1, LOG_LINE_SEPARATOR, L"Rebooting into EFI loader '%s' (Boot%04x)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:368:40: warning: passing argument 2 of 'EfivarSetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 368 | Status = EfivarSetRaw(&GlobalGuid, L"BootNext", (CHAR8*) &(Entry->EfiBootNum), sizeof(UINT16), TRUE); | ^~~~~~~~~~~ | | | short unsigned int * lib.h:97:51: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 97 | EFI_STATUS EfivarSetRaw(EFI_GUID *vendor, CHAR16 *name, CHAR8 *buf, UINTN size, BOOLEAN persistent); | ~~~~~~~~^~~~ launch_efi.c:370:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 370 | LOG(1, LOG_LINE_NORMAL, L"Error: %d", Status); | ^~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:371:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 371 | Print(L"Error: %d\n", Status); | ^~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_efi.c:375:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 375 | LOG(1, LOG_LINE_NORMAL, L"Attempting to reboot....", Entry->Title, Entry->EfiBootNum); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:379:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 379 | LOG(1, LOG_LINE_NORMAL, L"Error calling ResetSystem: %r", Status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:380:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 380 | Print(L"Error calling ResetSystem: %r\n", Status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_efi.c: In function 'DoEnableAndLockVMX': launch_efi.c:395:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 395 | LOG(1, LOG_LINE_NORMAL, L"Attempting to enable and lock VMX"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c: In function 'StartLoader': launch_efi.c:413:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 413 | LOG(1, LOG_LINE_SEPARATOR, L"Launching '%s'", SelectionName); | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_efi.c:419:49: warning: passing argument 2 of 'BeginExternalScreen' from incompatible pointer type [-Wincompatible-pointer-types] 419 | BeginExternalScreen(Entry->UseGraphicsMode, L"Booting OS"); | ^~~~~~~~~~~~~ | | | short unsigned int * screen.h:89:65: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 89 | VOID BeginExternalScreen(IN BOOLEAN UseGraphicsMode, IN CHAR16 *Title); | ~~~~~~~~^~~~~ launch_efi.c: In function 'StartTool': launch_efi.c:430:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 430 | LOG(1, LOG_LINE_SEPARATOR, L"Starting '%s'", Entry->me.Title); | ^~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c launch_legacy.c -o launch_legacy.o launch_legacy.c: In function 'WriteBootDiskHint': launch_legacy.c:185:51: warning: passing argument 2 of 'EfivarSetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 185 | Status = EfivarSetRaw(&AppleVariableVendorID, L"BootCampHD", | ^~~~~~~~~~~~~ | | | short unsigned int * In file included from launch_legacy.c:61: lib.h:97:51: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 97 | EFI_STATUS EfivarSetRaw(EFI_GUID *vendor, CHAR16 *name, CHAR8 *buf, UINTN size, BOOLEAN persistent); | ~~~~~~~~^~~~ launch_legacy.c: In function 'ExtractLegacyLoaderPaths': launch_legacy.c:222:28: warning: passing argument 2 of 'CheckError' from incompatible pointer type [-Wincompatible-pointer-types] 222 | if (CheckError(Status, L"while listing LoadedImage handles")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from launch_legacy.c:64: screen.h:106:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 106 | BOOLEAN CheckError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ launch_legacy.c: In function 'StartLegacyImageList': launch_legacy.c:345:99: warning: pointer type mismatch in conditional expression 345 | Print(L"Starting legacy loader\nUsing load options '%s'\n", FullLoadOptions ? FullLoadOptions : L""); | ^ launch_legacy.c:345:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 345 | Print(L"Starting legacy loader\nUsing load options '%s'\n", FullLoadOptions ? FullLoadOptions : L""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from global.h:50, from launch_legacy.c:58: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_legacy.c:356:28: warning: passing argument 2 of 'CheckError' from incompatible pointer type [-Wincompatible-pointer-types] 356 | if (CheckError(Status, L"while loading legacy loader")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * screen.h:106:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 106 | BOOLEAN CheckError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ launch_legacy.c:364:28: warning: passing argument 2 of 'CheckError' from incompatible pointer type [-Wincompatible-pointer-types] 364 | if (CheckError(Status, L"while getting a LoadedImageProtocol handle")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * screen.h:106:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 106 | BOOLEAN CheckError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ In file included from launch_legacy.c:67: launch_legacy.c:375:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 375 | LOG(1, LOG_LINE_NORMAL, L"Launching Mac-style BIOS/CSM/legacy loader"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_legacy.c:380:28: warning: passing argument 2 of 'CheckError' from incompatible pointer type [-Wincompatible-pointer-types] 380 | if (CheckError(Status, L"returned from legacy loader")) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * screen.h:106:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 106 | BOOLEAN CheckError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ launch_legacy.c:381:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 381 | LOG(1, LOG_LINE_NORMAL, L"returned from legacy loader"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_legacy.c: In function 'StartLegacy': launch_legacy.c:405:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 405 | LOG(1, LOG_LINE_NORMAL, L"Starting Mac-style BIOS/CSM/legacy loader '%s'", SelectionName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_legacy.c:406:31: warning: passing argument 2 of 'BeginExternalScreen' from incompatible pointer type [-Wincompatible-pointer-types] 406 | BeginExternalScreen(TRUE, L"Booting Legacy OS (Mac mode)"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * screen.h:89:65: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 89 | VOID BeginExternalScreen(IN BOOLEAN UseGraphicsMode, IN CHAR16 *Title); | ~~~~~~~~^~~~~ launch_legacy.c:408:59: warning: passing argument 2 of 'LoadOSIcon' from incompatible pointer type [-Wincompatible-pointer-types] 408 | BootLogoImage = LoadOSIcon(Entry->Volume->OSIconName, L"legacy", TRUE); | ^~~~~~~~~ | | | short unsigned int * In file included from launch_legacy.c:59: icns.h:52:66: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 52 | EG_IMAGE * LoadOSIcon(IN CHAR16 *OSIconName OPTIONAL, IN CHAR16 *FallbackIconName, BOOLEAN BootLogo); | ~~~~~~~~^~~~~~~~~~~~~~~~ launch_legacy.c:427:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 427 | Print(L"\nPlease make sure that you have the latest firmware update installed.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_legacy.c:429:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 429 | Print(L"\nThe firmware refused to boot from the selected volume. Note that external\n" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_legacy.c: In function 'StartLegacyUEFI': launch_legacy.c:439:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 439 | LOG(1, LOG_LINE_SEPARATOR, L"Launching UEFI-style BIOS/CSM/legacy OS '%s'", SelectionName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_legacy.c:440:31: warning: passing argument 2 of 'BeginExternalScreen' from incompatible pointer type [-Wincompatible-pointer-types] 440 | BeginExternalScreen(TRUE, L"Booting Legacy OS (UEFI mode)"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * screen.h:89:65: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 89 | VOID BeginExternalScreen(IN BOOLEAN UseGraphicsMode, IN CHAR16 *Title); | ~~~~~~~~^~~~~ launch_legacy.c:449:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 449 | LOG(1, LOG_LINE_NORMAL, L"Failure booting legacy (BIOS) OS."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_legacy.c:450:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 450 | Print(L"Failure booting legacy (BIOS) OS."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_legacy.c: In function 'AddLegacyEntry': launch_legacy.c:468:25: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 468 | LoaderTitle = L"Legacy OS"; | ^ launch_legacy.c:473:17: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 473 | VolDesc = (Volume->DiskKind == DISK_KIND_OPTICAL) ? L"CD" : L"HD"; | ^ launch_legacy.c:475:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 475 | LegacyTitle = PoolPrint(L"Boot %s from %s", LoaderTitle, VolDesc); | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_legacy.c:476:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 476 | LOG(1, LOG_LINE_NORMAL, L"Adding BIOS/CSM/legacy entry for '%s'", LegacyTitle); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_legacy.c:488:63: warning: passing argument 2 of 'LoadOSIcon' from incompatible pointer type [-Wincompatible-pointer-types] 488 | Entry->me.Image = LoadOSIcon(Volume->OSIconName, L"legacy", FALSE); | ^~~~~~~~~ | | | short unsigned int * icns.h:52:66: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 52 | EG_IMAGE * LoadOSIcon(IN CHAR16 *OSIconName OPTIONAL, IN CHAR16 *FallbackIconName, BOOLEAN BootLogo); | ~~~~~~~~^~~~~~~~~~~~~~~~ launch_legacy.c:491:30: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 491 | Entry->LoadOptions = (Volume->DiskKind == DISK_KIND_OPTICAL) ? L"CD" : | ^ launch_legacy.c:497:39: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 497 | SubScreen->Title = PoolPrint(L"Boot Options for %s on %s", LoaderTitle, VolDesc); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, global.h:219:36: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 219 | #define SUBSCREEN_HINT1 L"Use arrow keys to move cursor; Enter to boot;" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * launch_legacy.c:499:42: note: in expansion of macro 'SUBSCREEN_HINT1' 499 | SubScreen->Hint1 = StrDuplicate(SUBSCREEN_HINT1); | ^~~~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src global.h:221:36: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 221 | #define SUBSCREEN_HINT2_NO_EDITOR L"Esc to return to main menu" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * launch_legacy.c:501:41: note: in expansion of macro 'SUBSCREEN_HINT2_NO_EDITOR' 501 | SubScreen->Hint2 = StrDuplicate(SUBSCREEN_HINT2_NO_EDITOR); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src global.h:220:36: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 220 | #define SUBSCREEN_HINT2 L"Insert or F2 to edit options; Esc to return to main menu" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * launch_legacy.c:503:41: note: in expansion of macro 'SUBSCREEN_HINT2' 503 | SubScreen->Hint2 = StrDuplicate(SUBSCREEN_HINT2); | ^~~~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src launch_legacy.c:508:39: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 508 | SubEntry->me.Title = PoolPrint(L"Boot %s", LoaderTitle); | ^~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_legacy.c: In function 'AddLegacyEntryUEFI': launch_legacy.c:541:42: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 541 | Entry->me.Title = PoolPrint(L"Boot legacy OS from %s", LegacyDescription); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_legacy.c:542:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 542 | LOG(1, LOG_LINE_NORMAL, L"Adding UEFI-style BIOS/CSM/legacy entry for '%s'", Entry->me.Title); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_legacy.c:546:43: warning: passing argument 1 of 'LoadOSIcon' from incompatible pointer type [-Wincompatible-pointer-types] 546 | Entry->me.Image = LoadOSIcon(L"legacy", L"legacy", TRUE); | ^~~~~~~~~ | | | short unsigned int * icns.h:52:34: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 52 | EG_IMAGE * LoadOSIcon(IN CHAR16 *OSIconName OPTIONAL, IN CHAR16 *FallbackIconName, BOOLEAN BootLogo); | ~~~~~~~~^~~~~~~~~~ launch_legacy.c:546:54: warning: passing argument 2 of 'LoadOSIcon' from incompatible pointer type [-Wincompatible-pointer-types] 546 | Entry->me.Image = LoadOSIcon(L"legacy", L"legacy", TRUE); | ^~~~~~~~~ | | | short unsigned int * icns.h:52:66: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 52 | EG_IMAGE * LoadOSIcon(IN CHAR16 *OSIconName OPTIONAL, IN CHAR16 *FallbackIconName, BOOLEAN BootLogo); | ~~~~~~~~^~~~~~~~~~~~~~~~ launch_legacy.c:547:30: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 547 | Entry->LoadOptions = (DiskType == BBS_CDROM) ? L"CD" : | ^ launch_legacy.c:555:37: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 555 | SubScreen->Title = StrDuplicate(L"No boot options for legacy target"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src global.h:219:36: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 219 | #define SUBSCREEN_HINT1 L"Use arrow keys to move cursor; Enter to boot;" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * launch_legacy.c:557:37: note: in expansion of macro 'SUBSCREEN_HINT1' 557 | SubScreen->Hint1 = StrDuplicate(SUBSCREEN_HINT1); | ^~~~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src global.h:221:36: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 221 | #define SUBSCREEN_HINT2_NO_EDITOR L"Esc to return to main menu" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * launch_legacy.c:559:41: note: in expansion of macro 'SUBSCREEN_HINT2_NO_EDITOR' 559 | SubScreen->Hint2 = StrDuplicate(SUBSCREEN_HINT2_NO_EDITOR); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src global.h:220:36: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 220 | #define SUBSCREEN_HINT2 L"Insert or F2 to edit options; Esc to return to main menu" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * launch_legacy.c:561:41: note: in expansion of macro 'SUBSCREEN_HINT2' 561 | SubScreen->Hint2 = StrDuplicate(SUBSCREEN_HINT2); | ^~~~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src launch_legacy.c:566:43: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 566 | SubEntry->me.Title = PoolPrint(L"Boot %s", LegacyDescription); | ^~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_legacy.c: In function 'ScanLegacyUEFI': launch_legacy.c:597:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 597 | LOG(1, LOG_LINE_NORMAL, L"Scanning for a UEFI-style BIOS/CSM/legacy OS"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_legacy.c:617:42: warning: passing argument 1 of 'BdsLibGetVariableAndSize' from incompatible pointer type [-Wincompatible-pointer-types] 617 | BootOrder = BdsLibGetVariableAndSize(L"BootOrder", &EfiGlobalVariableGuid, &BootOrderSize); | ^~~~~~~~~~~~ | | | short unsigned int * In file included from global.h:54: ../EfiLib/GenericBdsLib.h:285:28: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 285 | IN CHAR16 *Name, | ~~~~~~~~~~~~~~~~~~~~~^~~~ launch_legacy.c:627:49: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 627 | SPrint(BootOption, sizeof (BootOption), L"Boot%04x", BootOrder[Index]); | ^~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:544:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 544 | IN CONST CHAR16 *fmt, launch_legacy.c: In function 'ScanLegacyDisc': launch_legacy.c:691:31: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 691 | LOG(1, LOG_LINE_THIN_SEP, L"Scanning for BIOS/CSM/legacy-mode optical discs"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_legacy.c: In function 'ScanLegacyInternal': launch_legacy.c:710:31: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 710 | LOG(1, LOG_LINE_THIN_SEP, L"Scanning for BIOS/CSM/legacy-mode internal disks"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_legacy.c: In function 'ScanLegacyExternal': launch_legacy.c:731:31: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 731 | LOG(1, LOG_LINE_THIN_SEP, L"Scanning for BIOS/CSM/legacy-mode external disks"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_legacy.c: In function 'FindLegacyBootType': launch_legacy.c:763:20: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 763 | if (StriSubCmp(L"Apple", ST->FirmwareVendor)) | ^~~~~~~~ | | | short unsigned int * In file included from launch_legacy.c:66: mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ launch_legacy.c: In function 'WarnIfLegacyProblems': launch_legacy.c:782:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 782 | LOG(1, LOG_LINE_NORMAL, L"BIOS/CSM/legacy support enabled in rEFInd but unavailable in EFI!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, launch_legacy.c:783:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 783 | Print(L"NOTE: refind.conf's 'scanfor' line specifies scanning for one or more legacy\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_legacy.c:784:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 784 | Print(L"(BIOS) boot options; however, this is not possible because your computer lacks\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_legacy.c:785:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 785 | Print(L"the necessary Compatibility Support Module (CSM) support or that support is\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, launch_legacy.c:786:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 786 | Print(L"disabled in your firmware.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c lib.c -o lib.o lib.c: In function 'FinishInitRefitLib': lib.c:220:40: warning: passing argument 2 of 'CheckError' from incompatible pointer type [-Wincompatible-pointer-types] 220 | CheckError(EFI_LOAD_ERROR, L"while (re)opening our installation volume"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from lib.c:62: screen.h:106:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 106 | BOOLEAN CheckError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ lib.c:226:33: warning: passing argument 2 of 'CheckFatalError' from incompatible pointer type [-Wincompatible-pointer-types] 226 | if (CheckFatalError(Status, L"while opening our installation directory")) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * screen.h:105:58: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 105 | BOOLEAN CheckFatalError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ lib.c: In function 'InitRefitLib': lib.c:239:33: warning: passing argument 2 of 'CheckFatalError' from incompatible pointer type [-Wincompatible-pointer-types] 239 | if (CheckFatalError(Status, L"while getting a LoadedImageProtocol handle")) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * screen.h:105:58: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 105 | BOOLEAN CheckFatalError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ lib.c: In function 'ReinitVolumes': lib.c:291:36: warning: passing argument 2 of 'CheckError' from incompatible pointer type [-Wincompatible-pointer-types] 291 | CheckError(Status, L"from LocateDevicePath"); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * screen.h:106:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 106 | BOOLEAN CheckError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ lib.c:311:40: warning: passing argument 2 of 'CheckError' from incompatible pointer type [-Wincompatible-pointer-types] 311 | CheckError(Status, L"from HandleProtocol"); | ^~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * screen.h:106:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 106 | BOOLEAN CheckError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ lib.c:314:36: warning: passing argument 2 of 'CheckError' from incompatible pointer type [-Wincompatible-pointer-types] 314 | CheckError(Status, L"from LocateDevicePath"); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * screen.h:106:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 106 | BOOLEAN CheckError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ In file included from lib.c:68: lib.c: In function 'CreateVarsDir': lib.c:399:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 399 | LOG(1, LOG_LINE_NORMAL, L"Trying to create a 'vars' directory in which to hold variables"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ In file included from global.h:50, from lib.c:59: /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:407:21: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 407 | L"Trying to create a 'refind-vars' directory on the ESP in which to hold variables"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:416:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 416 | LOG(1, LOG_LINE_NORMAL, L"Unable to create a directory in which to hold variables; error %d", Status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:417:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 417 | LOG(1, LOG_LINE_NORMAL, L"Falling back to NVRAM-based storage"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c: In function 'EfivarGetRaw': lib.c:434:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 434 | LOG(3, LOG_LINE_NORMAL, L"Getting EFI variable '%s' from %s", name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:463:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 463 | LOG(3, LOG_LINE_NORMAL, L"Error retrieving EFI variable '%s'", name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c: In function 'EfivarSetRaw': lib.c:489:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 489 | LOG(2, LOG_LINE_NORMAL, L"Saving EFI variable '%s' to %s", name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:508:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 508 | LOG(2, LOG_LINE_NORMAL, L"Not writing variable '%s'; it's unchanged", name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:511:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 511 | LOG(4, LOG_LINE_NORMAL, L"Freeing OldBuf"); | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:513:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 513 | LOG(4, LOG_LINE_NORMAL, L"Have freed OldBuf"); | ^~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:516:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 516 | LOG(1, LOG_LINE_NORMAL, L"Error %d when writing EFI variable '%s'", Status, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c: In function 'AddListElement': lib.c:533:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 533 | LOG(2, LOG_LINE_NORMAL, L"Allocating memory in AddListElement()"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:535:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 535 | LOG(2, LOG_LINE_NORMAL, L"Reallocating memory in AddListElement(); *ElementCount is %ld", *ElementCount); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c: In function 'FSTypeName': lib.c:569:20: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 569 | retval = L" whole disk"; | ^ lib.c:572:20: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 572 | retval = L" FAT"; | ^ lib.c:575:20: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 575 | retval = L" HFS+"; | ^ lib.c:578:20: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 578 | retval = L" ext2"; | ^ lib.c:581:20: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 581 | retval = L" ext3"; | ^ lib.c:584:20: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 584 | retval = L" ext4"; | ^ lib.c:587:20: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 587 | retval = L" ReiserFS"; | ^ lib.c:590:20: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 590 | retval = L" Btrfs"; | ^ lib.c:593:20: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 593 | retval = L" XFS"; | ^ lib.c:596:20: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 596 | retval = L" JFS"; | ^ lib.c:599:20: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 599 | retval = L" ISO-9660"; | ^ lib.c:602:20: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 602 | retval = L" NTFS"; | ^ lib.c:605:20: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 605 | retval = L""; | ^ lib.c: In function 'ScanVolumeBootcode': lib.c:769:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 769 | LOG(1, LOG_LINE_NORMAL, L"Error %d reading boot sector of '%s'", Status, Volume->VolName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:786:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 786 | Volume->OSIconName = L"linux"; | ^ lib.c:787:28: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 787 | Volume->OSName = L"Linux (Legacy)"; | ^ lib.c:791:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 791 | Volume->OSIconName = L"grub,linux"; | ^ lib.c:792:28: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 792 | Volume->OSName = L"Linux (Legacy)"; | ^ lib.c:799:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 799 | Volume->OSIconName = L"freebsd"; | ^ lib.c:800:28: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 800 | Volume->OSName = L"FreeBSD (Legacy)"; | ^ lib.c:808:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 808 | Volume->OSIconName = L"freebsd"; | ^ lib.c:809:28: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 809 | Volume->OSName = L"FreeBSD (Legacy)"; | ^ lib.c:814:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 814 | Volume->OSIconName = L"openbsd"; | ^ lib.c:815:28: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 815 | Volume->OSName = L"OpenBSD (Legacy)"; | ^ lib.c:820:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 820 | Volume->OSIconName = L"netbsd"; | ^ lib.c:821:28: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 821 | Volume->OSName = L"NetBSD (Legacy)"; | ^ lib.c:826:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 826 | Volume->OSIconName = L"win"; | ^ lib.c:827:28: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 827 | Volume->OSName = L"Windows (Legacy)"; | ^ lib.c:832:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 832 | Volume->OSIconName = L"win8,win"; | ^ lib.c:833:28: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 833 | Volume->OSName = L"Windows (Legacy)"; | ^ lib.c:838:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 838 | Volume->OSIconName = L"freedos"; | ^ lib.c:839:28: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 839 | Volume->OSName = L"FreeDOS (Legacy)"; | ^ lib.c:844:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 844 | Volume->OSIconName = L"ecomstation"; | ^ lib.c:845:28: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 845 | Volume->OSName = L"eComStation (Legacy)"; | ^ lib.c:849:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 849 | Volume->OSIconName = L"beos"; | ^ lib.c:850:28: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 850 | Volume->OSName = L"BeOS (Legacy)"; | ^ lib.c:854:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 854 | Volume->OSIconName = L"zeta,beos"; | ^ lib.c:855:28: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 855 | Volume->OSName = L"ZETA (Legacy)"; | ^ lib.c:860:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 860 | Volume->OSIconName = L"haiku,beos"; | ^ lib.c:861:28: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 861 | Volume->OSName = L"Haiku (Legacy)"; | ^ lib.c:868:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 868 | LOG(1, LOG_LINE_NORMAL, L"Result of bootcode detection: %s %s (%s)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c: In function 'SetVolumeBadgeIcon': lib.c:912:68: warning: passing argument 2 of 'egLoadIconAnyType' from incompatible pointer type [-Wincompatible-pointer-types] 912 | Volume->VolBadgeImage = egLoadIconAnyType(Volume->RootDir, L"", | ^~~ | | | short unsigned int * In file included from global.h:56: ../libeg/libeg.h:112:72: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | EG_IMAGE * egLoadIconAnyType(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *SubdirName, IN CHAR16 *BaseName, IN UINTN IconSize); | ~~~~~~~~^~~~~~~~~~ lib.c:913:51: warning: passing argument 3 of 'egLoadIconAnyType' from incompatible pointer type [-Wincompatible-pointer-types] 913 | L".VolumeBadge", | ^~~~~~~~~~~~~~~ | | | short unsigned int * ../libeg/libeg.h:112:95: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | EG_IMAGE * egLoadIconAnyType(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *SubdirName, IN CHAR16 *BaseName, IN UINTN IconSize); | ~~~~~~~~^~~~~~~~ lib.c: In function 'SizeInIEEEUnits': lib.c:940:39: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 940 | CHAR16 *Units = NULL, *Prefixes = L" KMGTPEZ"; | ^~~~~~~~~~~ lib.c:950:30: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 950 | Units = StrDuplicate(L"-byte"); | ^~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src lib.c:952:30: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 952 | Units = StrDuplicate(L" iB"); | ^~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src lib.c:955:26: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 955 | TheValue = PoolPrint(L"%ld%s", SizeInIeee, Units); | ^~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c: In function 'GetVolumeName': lib.c:973:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 973 | LOG(3, LOG_LINE_NORMAL, L"Setting volume name to filesystem name of '%s'", FoundName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, In file included from lib.c:60: lib.h:88:32: warning: passing argument 2 of 'IsIn' from incompatible pointer type [-Wincompatible-pointer-types] 88 | #define IGNORE_PARTITION_NAMES L"Microsoft basic data,Linux filesystem,Apple HFS/HFS+" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * lib.c:978:33: note: in expansion of macro 'IGNORE_PARTITION_NAMES' 978 | !IsIn(Volume->PartName, IGNORE_PARTITION_NAMES)) { | ^~~~~~~~~~~~~~~~~~~~~~ In file included from lib.c:69: mystrings.h:53:49: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 53 | BOOLEAN IsIn(IN CHAR16 *SmallString, IN CHAR16 *List); | ~~~~~~~~^~~~ lib.c:980:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 980 | LOG(3, LOG_LINE_NORMAL, L"Setting volume name to partition name of '%s'", FoundName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:990:35: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 990 | FoundName = PoolPrint(L"%s%s volume", SISize, FSTypeName(Volume->FSType)); | ^~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:992:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 992 | LOG(3, LOG_LINE_NORMAL, L"Setting volume name to filesystem description of '%s'", FoundName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:1000:35: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1000 | FoundName = PoolPrint(L"%s volume", TypeName); | ^~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:1002:38: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 1002 | FoundName = StrDuplicate(L"unknown volume"); | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src lib.c:1003:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1003 | LOG(3, LOG_LINE_NORMAL, L"Setting volume name to generic description of '%s'", FoundName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c: In function 'SetPartGuidAndName': lib.c:1040:45: warning: passing argument 1 of 'StringAsGuid' from incompatible pointer type [-Wincompatible-pointer-types] 1040 | Volume->PartGuid = StringAsGuid(L"92a6c61f-7130-49b9-b05c-8d7e7b039127"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:61:32: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 61 | EFI_GUID StringAsGuid(CHAR16 * InString); | ~~~~~~~~~^~~~~~~~ lib.c: In function 'HasWindowsBiosBootFiles': lib.c:1054:50: warning: passing argument 2 of 'FileExists' from incompatible pointer type [-Wincompatible-pointer-types] 1054 | FilesFound = FileExists(Volume->RootDir, L"NTLDR") || // Windows NT/200x/XP boot file | ^~~~~~~~ | | | short unsigned int * lib.h:109:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 109 | BOOLEAN FileExists(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *RelativePath); | ~~~~~~~~^~~~~~~~~~~~ lib.c:1055:50: warning: passing argument 2 of 'FileExists' from incompatible pointer type [-Wincompatible-pointer-types] 1055 | FileExists(Volume->RootDir, L"bootmgr"); // Windows Vista/7/8 boot file | ^~~~~~~~~~ | | | short unsigned int * lib.h:109:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 109 | BOOLEAN FileExists(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *RelativePath); | ~~~~~~~~^~~~~~~~~~~~ lib.c: In function 'ScanVolume': lib.c:1088:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 1088 | Print(L"Warning: Can't get BlockIO protocol.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, lib.c:1089:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1089 | LOG(1, LOG_LINE_NORMAL, L"Warning: Can't get BlockIO protocol in ScanVolume()"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:1137:45: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1137 | LOG(1, LOG_LINE_NORMAL, L"Could not get DiskDevicePath for volume"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:1146:45: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1146 | LOG(1, LOG_LINE_NORMAL, L"Could not get WholeDiskBlockIO for volume"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:1155:41: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1155 | LOG(1, LOG_LINE_NORMAL, L"Could not locate device path for volume"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:1164:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1164 | LOG(2, LOG_LINE_NORMAL, L"Volume considered non-bootable, but boot code is present"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c: In function 'ScanExtendedPartition': lib.c:1210:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1210 | LOG(1, LOG_LINE_NORMAL, L"Error %d reading blocks from disk", Status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:1233:45: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1233 | Volume->VolName = PoolPrint(L"Partition %d", Volume->MbrPartitionIndex + 1); | ^~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c: In function 'ScanVolumes': lib.c:1274:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1274 | LOG(1, LOG_LINE_SEPARATOR, L"Scanning for volumes"); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:1282:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1282 | LOG(2, LOG_LINE_NORMAL, L"Found handles for %d volumes", HandleCount); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:1286:28: warning: passing argument 2 of 'CheckError' from incompatible pointer type [-Wincompatible-pointer-types] 1286 | if (CheckError(Status, L"while listing all file systems")) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * screen.h:106:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 106 | BOOLEAN CheckError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ lib.c:1296:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1296 | LOG(1, LOG_LINE_NORMAL, L"Identified volume '%s', of type%s", Volume->VolName, FSTypeName(Volume->FSType)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:1316:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 1316 | Print(L"WARNING: SelfVolume not found"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, lib.c:1380:49: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1380 | Volume->VolName = PoolPrint(L"Partition %d", PartitionIndex + 1); | ^~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:1389:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1389 | LOG(1, LOG_LINE_NORMAL, L"Identified %d volumes", VolumesCount); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c: In function 'SetVolumeIcons': lib.c:1396:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1396 | LOG(1, LOG_LINE_NORMAL, L"Setting volume icons...."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:1400:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1400 | LOG(2, LOG_LINE_NORMAL, L"Setting volume badge icon for volume %d", VolumeIndex); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:1405:41: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1405 | LOG(2, LOG_LINE_NORMAL, L"Trying to load custom volume icon image for volume %d", VolumeIndex); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:1406:75: warning: passing argument 2 of 'egLoadIconAnyType' from incompatible pointer type [-Wincompatible-pointer-types] 1406 | Volume->VolIconImage = egLoadIconAnyType(Volume->RootDir, L"", L".VolumeIcon", GlobalConfig.IconSizes[ICON_SIZE_BIG]); | ^~~ | | | short unsigned int * ../libeg/libeg.h:112:72: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | EG_IMAGE * egLoadIconAnyType(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *SubdirName, IN CHAR16 *BaseName, IN UINTN IconSize); | ~~~~~~~~^~~~~~~~~~ lib.c:1406:80: warning: passing argument 3 of 'egLoadIconAnyType' from incompatible pointer type [-Wincompatible-pointer-types] 1406 | Volume->VolIconImage = egLoadIconAnyType(Volume->RootDir, L"", L".VolumeIcon", GlobalConfig.IconSizes[ICON_SIZE_BIG]); | ^~~~~~~~~~~~~~ | | | short unsigned int * ../libeg/libeg.h:112:95: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | EG_IMAGE * egLoadIconAnyType(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *SubdirName, IN CHAR16 *BaseName, IN UINTN IconSize); | ~~~~~~~~^~~~~~~~ lib.c: In function 'DirNextEntry': lib.c:1455:21: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1455 | L"FS Driver requests bad buffer size %d (was %d), using %d instead", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c:1459:41: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1459 | LOG(3, LOG_LINE_NORMAL, L"Reallocating buffer from %d to %d", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, lib.c: In function 'StripEfiExtension': lib.c:1634:59: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 1634 | if ((Length >= 4) && MyStriCmp(&Copy[Length - 4], L".efi")) { | ^~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c line_edit.c -o line_edit.o line_edit.c: In function 'line_edit': line_edit.c:62:22: warning: passing argument 1 of 'DrawScreenHeader' from incompatible pointer type [-Wincompatible-pointer-types] 62 | DrawScreenHeader(L"Line Editor"); | ^~~~~~~~~~~~~~ | | | short unsigned int * In file included from line_edit.c:31: screen.h:92:34: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 92 | VOID DrawScreenHeader(IN CHAR16 *Title); | ~~~~~~~~^~~~~ line_edit.c:68:17: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 68 | line_in = L""; | ^ /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c linux.c -o linux.o In file included from linux.c:64: linux.c: In function 'FindInitrd': linux.c:88:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 88 | LOG(1, LOG_LINE_NORMAL, L"Searching for an initrd to match '%s' on '%s'", LoaderPath, Volume->VolName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ In file included from global.h:50, from linux.c:58: /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, linux.c:91:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 91 | LOG(3, LOG_LINE_NORMAL, L"Kernel version string is '%s'", KernelVersion); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, linux.c:98:29: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 98 | MergeStrings(&Path, L"\\", 0); | ^~~~~ | | | short unsigned int * In file included from linux.c:62: mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ linux.c:104:29: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 104 | MergeStrings(&Path, L"\\", 0); | ^~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ linux.c:105:37: warning: passing argument 3 of 'DirIterNext' from incompatible pointer type [-Wincompatible-pointer-types] 105 | while (DirIterNext(&DirIter, 2, L"init*,booster*", &DirEntry)) { | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from linux.c:60: lib.h:114:85: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 114 | BOOLEAN DirIterNext(IN OUT REFIT_DIR_ITER *DirIter, IN UINTN FilterMode, IN CHAR16 *FilePattern OPTIONAL, OUT EFI_FILE_INFO **DirEntry); | ~~~~~~~~^~~~~~~~~~~ linux.c:113:58: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 113 | CurrentInitrdName->Value = PoolPrint(L"%s%s", Path, DirEntry->FileName); | ^~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, linux.c:148:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 148 | LOG(1, LOG_LINE_NORMAL, L"Located initrd is '%s'", InitrdName); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, linux.c: In function 'AddInitrdToOptions': linux.c:167:24: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 167 | if (StriSubCmp(L"%v", Options)) { | ^~~~~ | | | short unsigned int * mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ linux.c:169:43: warning: passing argument 2 of 'ReplaceSubstring' from incompatible pointer type [-Wincompatible-pointer-types] 169 | ReplaceSubstring(&NewOptions, L"%v", InitrdVersion); | ^~~~~ | | | short unsigned int * mystrings.h:55:65: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 55 | BOOLEAN ReplaceSubstring(IN OUT CHAR16 **MainString, IN CHAR16 *SearchString, IN CHAR16 *ReplString); | ~~~~~~~~^~~~~~~~~~~~ linux.c:172:32: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 172 | } else if (!StriSubCmp(L"initrd=", Options)) { | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ linux.c:173:39: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 173 | MergeStrings(&NewOptions, L"initrd=", L' '); | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ linux.c: In function 'GetMainLinuxOptions': global.h:230:24: warning: passing argument 2 of 'ReplaceSubstring' from incompatible pointer type [-Wincompatible-pointer-types] 230 | #define KERNEL_VERSION L"%v" | ^~~~~ | | | short unsigned int * linux.c:189:32: note: in expansion of macro 'KERNEL_VERSION' 189 | ReplaceSubstring(&Options, KERNEL_VERSION, KernelVersion); | ^~~~~~~~~~~~~~ mystrings.h:55:65: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 55 | BOOLEAN ReplaceSubstring(IN OUT CHAR16 **MainString, IN CHAR16 *SearchString, IN CHAR16 *ReplString); | ~~~~~~~~^~~~~~~~~~~~ linux.c: In function 'ParseReleaseFile': linux.c:214:62: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 214 | if ((TokenCount > 1) && (MyStriCmp(TokenList[0], L"ID") || | ^~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); linux.c:215:62: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 215 | MyStriCmp(TokenList[0], L"NAME") || | ^~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); linux.c:216:62: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 216 | MyStriCmp(TokenList[0], L"DISTRIB_ID"))) { | ^~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); linux.c: In function 'GuessLinuxDistribution': linux.c:229:42: warning: passing argument 3 of 'ParseReleaseFile' from incompatible pointer type [-Wincompatible-pointer-types] 229 | ParseReleaseFile(OSIconName, Volume, L"etc\\lsb-release"); | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * linux.c:201:81: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 201 | static VOID ParseReleaseFile(CHAR16 **OSIconName, REFIT_VOLUME *Volume, CHAR16 *FileName) { | ~~~~~~~~^~~~~~~~ linux.c:230:42: warning: passing argument 3 of 'ParseReleaseFile' from incompatible pointer type [-Wincompatible-pointer-types] 230 | ParseReleaseFile(OSIconName, Volume, L"etc\\os-release"); | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * linux.c:201:81: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 201 | static VOID ParseReleaseFile(CHAR16 **OSIconName, REFIT_VOLUME *Volume, CHAR16 *FileName) { | ~~~~~~~~^~~~~~~~ linux.c:233:20: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 233 | if (StriSubCmp(L".fc", LoaderPath)) | ^~~~~~ | | | short unsigned int * mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ linux.c:234:34: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 234 | MergeStrings(OSIconName, L"fedora", L','); | ^~~~~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ linux.c:235:20: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 235 | if (StriSubCmp(L".el", LoaderPath)) | ^~~~~~ | | | short unsigned int * mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ linux.c:236:34: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 236 | MergeStrings(OSIconName, L"redhat", L','); | ^~~~~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ linux.c: In function 'AddKernelToSubmenu': global.h:230:24: warning: passing argument 2 of 'ReplaceSubstring' from incompatible pointer type [-Wincompatible-pointer-types] 230 | #define KERNEL_VERSION L"%v" | ^~~~~ | | | short unsigned int * linux.c:254:47: note: in expansion of macro 'KERNEL_VERSION' 254 | ReplaceSubstring(&(TokenList[1]), KERNEL_VERSION, KernelVersion); | ^~~~~~~~~~~~~~ mystrings.h:55:65: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 55 | BOOLEAN ReplaceSubstring(IN OUT CHAR16 **MainString, IN CHAR16 *SearchString, IN CHAR16 *ReplString); | ~~~~~~~~^~~~~~~~~~~~ linux.c:257:40: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 257 | MergeStrings(&SubmenuName, L": ", '\0'); | ^~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ linux.c:258:97: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 258 | MergeStrings(&SubmenuName, TokenList[0] ? StrDuplicate(TokenList[0]) : StrDuplicate(L"Boot Linux"), '\0'); | ^~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src linux.c: In function 'HasSignedCounterpart': linux.c:293:28: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 293 | MergeStrings(&NewFile, L".efi.signed", 0); | ^~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ linux.c:296:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 296 | LOG(2, LOG_LINE_NORMAL, L"Found signed counterpart to '%s'", FullName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c log.c -o log.o In file included from log.c:17: log.c: In function 'StartLogging': log.h:34:17: warning: passing argument 2 of 'FileExists' from incompatible pointer type [-Wincompatible-pointer-types] 34 | #define LOGFILE L"refind.log" | ^~~~~~~~~~~~~ | | | short unsigned int * log.c:67:37: note: in expansion of macro 'LOGFILE' 67 | if (FileExists(SelfDir, LOGFILE)) { | ^~~~~~~ In file included from log.c:20: lib.h:109:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 109 | BOOLEAN FileExists(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *RelativePath); | ~~~~~~~~^~~~~~~~~~~~ log.h:35:21: warning: passing argument 2 of 'FileExists' from incompatible pointer type [-Wincompatible-pointer-types] 35 | #define LOGFILE_OLD L"refind.log-old" | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * log.c:68:41: note: in expansion of macro 'LOGFILE_OLD' 68 | if (FileExists(SelfDir, LOGFILE_OLD)) | ^~~~~~~~~~~ lib.h:109:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 109 | BOOLEAN FileExists(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *RelativePath); | ~~~~~~~~^~~~~~~~~~~~ log.h:35:21: warning: passing argument 2 of 'DeleteFile' from incompatible pointer type [-Wincompatible-pointer-types] 35 | #define LOGFILE_OLD L"refind.log-old" | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * log.c:69:41: note: in expansion of macro 'LOGFILE_OLD' 69 | DeleteFile(SelfDir, LOGFILE_OLD); | ^~~~~~~~~~~ log.c:30:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 30 | EFI_STATUS DeleteFile(IN EFI_FILE_PROTOCOL *BaseDir, CHAR16 *FileName) { | ~~~~~~~~^~~~~~~~ log.h:34:17: warning: passing argument 2 of 'BackupOldFile' from incompatible pointer type [-Wincompatible-pointer-types] 34 | #define LOGFILE L"refind.log" | ^~~~~~~~~~~~~ | | | short unsigned int * log.c:70:40: note: in expansion of macro 'LOGFILE' 70 | BackupOldFile(SelfDir, LOGFILE); | ^~~~~~~ In file included from log.c:19: install.h:62:65: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 62 | EFI_STATUS BackupOldFile(IN EFI_FILE_PROTOCOL *BaseDir, CHAR16 *FileName); | ~~~~~~~~^~~~~~~~ log.h:34:17: warning: passing argument 2 of 'FileExists' from incompatible pointer type [-Wincompatible-pointer-types] 34 | #define LOGFILE L"refind.log" | ^~~~~~~~~~~~~ | | | short unsigned int * log.c:78:55: note: in expansion of macro 'LOGFILE' 78 | if (!Restart && (FileExists(FoundEsp, LOGFILE))) { | ^~~~~~~ lib.h:109:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 109 | BOOLEAN FileExists(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *RelativePath); | ~~~~~~~~^~~~~~~~~~~~ log.h:35:21: warning: passing argument 2 of 'FileExists' from incompatible pointer type [-Wincompatible-pointer-types] 35 | #define LOGFILE_OLD L"refind.log-old" | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * log.c:79:46: note: in expansion of macro 'LOGFILE_OLD' 79 | if (FileExists(FoundEsp, LOGFILE_OLD)) | ^~~~~~~~~~~ lib.h:109:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 109 | BOOLEAN FileExists(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *RelativePath); | ~~~~~~~~^~~~~~~~~~~~ log.h:35:21: warning: passing argument 2 of 'DeleteFile' from incompatible pointer type [-Wincompatible-pointer-types] 35 | #define LOGFILE_OLD L"refind.log-old" | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * log.c:80:46: note: in expansion of macro 'LOGFILE_OLD' 80 | DeleteFile(FoundEsp, LOGFILE_OLD); | ^~~~~~~~~~~ log.c:30:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 30 | EFI_STATUS DeleteFile(IN EFI_FILE_PROTOCOL *BaseDir, CHAR16 *FileName) { | ~~~~~~~~^~~~~~~~ log.h:34:17: warning: passing argument 2 of 'BackupOldFile' from incompatible pointer type [-Wincompatible-pointer-types] 34 | #define LOGFILE L"refind.log" | ^~~~~~~~~~~~~ | | | short unsigned int * log.c:81:45: note: in expansion of macro 'LOGFILE' 81 | BackupOldFile(FoundEsp, LOGFILE); | ^~~~~~~ install.h:62:65: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 62 | EFI_STATUS BackupOldFile(IN EFI_FILE_PROTOCOL *BaseDir, CHAR16 *FileName); | ~~~~~~~~^~~~~~~~ log.c:90:27: warning: passing argument 1 of 'PrintUglyText' from incompatible pointer type [-Wincompatible-pointer-types] 90 | PrintUglyText(L"Unable to open log file!", CENTER); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from log.c:23: screen.h:101:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 101 | VOID PrintUglyText(IN CHAR16 *Text, UINTN PositionCode); | ~~~~~~~~^~~~ log.c:111:44: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 111 | LOG(1, LOG_LINE_SEPARATOR, L"Beginning logging"); | ^~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ In file included from log.h:22: /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, log.c: In function 'WriteToLog': log.c:142:42: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 142 | FinalMessage = PoolPrint(L"\n==========%s==========\n", *Message); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, log.c:145:42: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 145 | FinalMessage = PoolPrint(L"\n----------%s----------\n", *Message); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, log.c:149:42: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 149 | FinalMessage = PoolPrint(L"%s - %s\n", TimeStr, *Message); | ^~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c main.c -o main.o main.c:86:40: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 86 | REFIT_MENU_ENTRY MenuEntryReturn = { L"Return to Main Menu", TAG_RETURN, 1, 0, 0, NULL, NULL, NULL }; | ^~~~~~~~~~~~~~~~~~~~~~ main.c:86:40: note: (near initialization for 'MenuEntryReturn.Title') main.c:88:38: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 88 | REFIT_MENU_SCREEN MainMenu = { L"Main Menu", NULL, 0, NULL, 0, NULL, 0, L"Automatic boot", | ^~~~~~~~~~~~ main.c:88:38: note: (near initialization for 'MainMenu.Title') main.c:88:79: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 88 | REFIT_MENU_SCREEN MainMenu = { L"Main Menu", NULL, 0, NULL, 0, NULL, 0, L"Automatic boot", | ^~~~~~~~~~~~~~~~~ main.c:88:79: note: (near initialization for 'MainMenu.TimeoutText') main.c:89:38: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 89 | L"Use arrow keys to move cursor; Enter to boot;", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:89:38: note: (near initialization for 'MainMenu.Hint1') main.c:90:38: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 90 | L"Insert, Tab, or F2 for more options; Esc or Backspace to refresh" }; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:90:38: note: (near initialization for 'MainMenu.Hint2') main.c:91:45: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 91 | static REFIT_MENU_SCREEN AboutMenu = { L"About", NULL, 0, NULL, 0, NULL, 0, NULL, L"Press Enter to return to main menu", L"" }; | ^~~~~~~~ main.c:91:45: note: (near initialization for 'AboutMenu.Title') main.c:91:88: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 91 | static REFIT_MENU_SCREEN AboutMenu = { L"About", NULL, 0, NULL, 0, NULL, 0, NULL, L"Press Enter to return to main menu", L"" }; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:91:88: note: (near initialization for 'AboutMenu.Hint1') main.c:91:127: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 91 | static REFIT_MENU_SCREEN AboutMenu = { L"About", NULL, 0, NULL, 0, NULL, 0, NULL, L"Press Enter to return to main menu", L"" }; | ^~~ main.c:91:127: note: (near initialization for 'AboutMenu.Hint2') In file included from main.c:59: config.h:71:34: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 71 | #define CONFIG_FILE_NAME L"refind.conf" | ^~~~~~~~~~~~~~ main.c:133:55: note: in expansion of macro 'CONFIG_FILE_NAME' 133 | /* *ConfigFilename = */ CONFIG_FILE_NAME, | ^~~~~~~~~~~~~~~~ config.h:71:34: note: (near initialization for 'GlobalConfig.ConfigFilename') 71 | #define CONFIG_FILE_NAME L"refind.conf" | ^~~~~~~~~~~~~~ main.c:133:55: note: in expansion of macro 'CONFIG_FILE_NAME' 133 | /* *ConfigFilename = */ CONFIG_FILE_NAME, | ^~~~~~~~~~~~~~~~ In file included from main.c:73: main.c: In function 'AboutrEFInd': main.c:169:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 169 | LOG(1, LOG_LINE_SEPARATOR, L"Displaying About/Info screen"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ In file included from global.h:50, from main.c:58: /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:172:47: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 172 | AddMenuInfoLine(&AboutMenu, PoolPrint(L"rEFInd Version %s", REFIND_VERSION)); | ^~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:173:37: warning: passing argument 2 of 'AddMenuInfoLine' from incompatible pointer type [-Wincompatible-pointer-types] 173 | AddMenuInfoLine(&AboutMenu, L""); | ^~~ | | | short unsigned int * In file included from main.c:65: menu.h:112:63: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | VOID AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CHAR16 *InfoLine); | ~~~~~~~~^~~~~~~~ main.c:174:37: warning: passing argument 2 of 'AddMenuInfoLine' from incompatible pointer type [-Wincompatible-pointer-types] 174 | AddMenuInfoLine(&AboutMenu, L"Copyright (c) 2006-2010 Christoph Pfisterer"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:112:63: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | VOID AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CHAR16 *InfoLine); | ~~~~~~~~^~~~~~~~ main.c:175:37: warning: passing argument 2 of 'AddMenuInfoLine' from incompatible pointer type [-Wincompatible-pointer-types] 175 | AddMenuInfoLine(&AboutMenu, L"Copyright (c) 2012-2023 Roderick W. Smith"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:112:63: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | VOID AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CHAR16 *InfoLine); | ~~~~~~~~^~~~~~~~ main.c:176:37: warning: passing argument 2 of 'AddMenuInfoLine' from incompatible pointer type [-Wincompatible-pointer-types] 176 | AddMenuInfoLine(&AboutMenu, L"Portions Copyright (c) Intel Corporation and others"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:112:63: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | VOID AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CHAR16 *InfoLine); | ~~~~~~~~^~~~~~~~ main.c:177:37: warning: passing argument 2 of 'AddMenuInfoLine' from incompatible pointer type [-Wincompatible-pointer-types] 177 | AddMenuInfoLine(&AboutMenu, L"Distributed under the terms of the GNU GPLv3 license"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:112:63: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | VOID AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CHAR16 *InfoLine); | ~~~~~~~~^~~~~~~~ main.c:178:37: warning: passing argument 2 of 'AddMenuInfoLine' from incompatible pointer type [-Wincompatible-pointer-types] 178 | AddMenuInfoLine(&AboutMenu, L""); | ^~~ | | | short unsigned int * menu.h:112:63: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | VOID AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CHAR16 *InfoLine); | ~~~~~~~~^~~~~~~~ main.c:179:37: warning: passing argument 2 of 'AddMenuInfoLine' from incompatible pointer type [-Wincompatible-pointer-types] 179 | AddMenuInfoLine(&AboutMenu, L"Running on:"); | ^~~~~~~~~~~~~~ | | | short unsigned int * menu.h:112:63: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | VOID AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CHAR16 *InfoLine); | ~~~~~~~~^~~~~~~~ main.c:182:47: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 182 | AddMenuInfoLine(&AboutMenu, PoolPrint(L" Firmware: %s %d.%02d", FirmwareVendor, | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:185:47: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 185 | AddMenuInfoLine(&AboutMenu, PoolPrint(L" EFI Revision %d.%02d", ST->Hdr.Revision >> 16, ST->Hdr.Revision & ((1 << 16) - 1))); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:190:47: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 190 | AddMenuInfoLine(&AboutMenu, PoolPrint(L" Platform: x86_64 (64 bit); Secure Boot %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:203:47: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 203 | AddMenuInfoLine(&AboutMenu, PoolPrint(L" Screen Output: %s", TempStr)); | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:205:37: warning: passing argument 2 of 'AddMenuInfoLine' from incompatible pointer type [-Wincompatible-pointer-types] 205 | AddMenuInfoLine(&AboutMenu, L""); | ^~~ | | | short unsigned int * menu.h:112:63: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | VOID AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CHAR16 *InfoLine); | ~~~~~~~~^~~~~~~~ main.c:207:37: warning: passing argument 2 of 'AddMenuInfoLine' from incompatible pointer type [-Wincompatible-pointer-types] 207 | AddMenuInfoLine(&AboutMenu, L"Built with GNU-EFI"); | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:112:63: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | VOID AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CHAR16 *InfoLine); | ~~~~~~~~^~~~~~~~ main.c:211:37: warning: passing argument 2 of 'AddMenuInfoLine' from incompatible pointer type [-Wincompatible-pointer-types] 211 | AddMenuInfoLine(&AboutMenu, L""); | ^~~ | | | short unsigned int * menu.h:112:63: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | VOID AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CHAR16 *InfoLine); | ~~~~~~~~^~~~~~~~ main.c:212:37: warning: passing argument 2 of 'AddMenuInfoLine' from incompatible pointer type [-Wincompatible-pointer-types] 212 | AddMenuInfoLine(&AboutMenu, L"For more information, see the rEFInd Web site:"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:112:63: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | VOID AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CHAR16 *InfoLine); | ~~~~~~~~^~~~~~~~ main.c:213:37: warning: passing argument 2 of 'AddMenuInfoLine' from incompatible pointer type [-Wincompatible-pointer-types] 213 | AddMenuInfoLine(&AboutMenu, L"http://www.rodsbooks.com/refind/"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:112:63: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | VOID AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CHAR16 *InfoLine); | ~~~~~~~~^~~~~~~~ main.c: In function 'StoreLoaderName': main.c:226:35: warning: passing argument 2 of 'EfivarSetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 226 | EfivarSetRaw(&RefindGuid, L"PreviousBoot", (CHAR8*) Name, StrLen(Name) * 2 + 2, TRUE); | ^~~~~~~~~~~~~~~ | | | short unsigned int * In file included from main.c:62: lib.h:97:51: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 97 | EFI_STATUS EfivarSetRaw(EFI_GUID *vendor, CHAR16 *name, CHAR8 *buf, UINTN size, BOOLEAN persistent); | ~~~~~~~~^~~~ main.c: In function 'RescanAll': main.c:232:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 232 | LOG(1, LOG_LINE_NORMAL, L"Re-scanning all boot loaders"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c: In function 'SecureBootSetup': main.c:268:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 268 | LOG(1, LOG_LINE_NORMAL, L"Setting up Secure Boot (if applicable)"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:270:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 270 | LOG(2, LOG_LINE_NORMAL, L"Secure boot mode detected with loaded Shim; adding MOK extensions"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:275:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 275 | Print(L"Failed to install MOK Secure Boot extensions"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, main.c:279:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 279 | LOG(2, LOG_LINE_NORMAL, L"Secure boot disabled; doing nothing"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c: In function 'SecureBootUninstall': main.c:294:29: warning: passing argument 1 of 'BeginTextScreen' from incompatible pointer type [-Wincompatible-pointer-types] 294 | BeginTextScreen(L"Secure Boot Policy Failure"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from main.c:60: screen.h:88:33: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 88 | VOID BeginTextScreen(IN CHAR16 *Title); | ~~~~~~~~^~~~~ main.c:295:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 295 | Print(L"Failed to uninstall MOK Secure Boot extensions; forcing a reboot."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, main.c: In function 'SetConfigFilename': main.c:315:39: warning: passing argument 2 of 'MyStrStr' from incompatible pointer type [-Wincompatible-pointer-types] 315 | SubString = MyStrStr(Options, L" -c "); | ^~~~~~~ | | | short unsigned int * In file included from main.c:68: mystrings.h:44:51: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 44 | CHAR16* MyStrStr (IN CHAR16 *String, IN CHAR16 *StrCharSet); | ~~~~~~~~~^~~~~~~~~~ main.c:325:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 325 | Print(L"Specified configuration file (%s) doesn't exist; using\n'refind.conf' default\n", FileName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, main.c: In function 'AdjustDefaultSelection': main.c:340:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 340 | LOG(1, LOG_LINE_NORMAL, L"Adjusting default_selection with PreviousBoot values"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:342:32: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 342 | if (MyStriCmp(Element, L"+")) { | ^~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); main.c:343:48: warning: passing argument 2 of 'EfivarGetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 343 | Status = EfivarGetRaw(&RefindGuid, L"PreviousBoot", (CHAR8 **) &PreviousBoot, &j); | ^~~~~~~~~~~~~~~ | | | short unsigned int * lib.h:96:57: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 96 | EFI_STATUS EfivarGetRaw(IN EFI_GUID *vendor, IN CHAR16 *name, OUT CHAR8 **buffer, OUT UINTN *size OPTIONAL); | ~~~~~~~~^~~~ main.c: In function 'LogBasicInfo': main.c:372:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 372 | LOG(1, LOG_LINE_SEPARATOR, L"System information"); | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:374:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 374 | LOG(1, LOG_LINE_NORMAL, L"rEFInd %s built with GNU-EFI", REFIND_VERSION); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:379:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 379 | LOG(1, LOG_LINE_NORMAL, L"rEFInd boot partition GUID: %s", TempStr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:384:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 384 | LOG(1, LOG_LINE_NORMAL, L"Platform: x86-64/X64/AMD64 (64-bit)"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:390:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 390 | LOG(1, LOG_LINE_NORMAL, L"Log level is %d", GlobalConfig.LogLevel); | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:391:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 391 | LOG(1, LOG_LINE_NORMAL, L"Menu timeout is %d", GlobalConfig.Timeout); | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:392:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 392 | LOG(1, LOG_LINE_NORMAL, L"Firmware: %s %d.%02d", ST->FirmwareVendor, | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:394:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 394 | LOG(1, LOG_LINE_NORMAL, L"EFI Revision %d.%02d", EfiMajorVersion, | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:396:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 396 | LOG(1, LOG_LINE_NORMAL, L"Secure Boot %s", secure_mode() ? L"active" : L"inactive"); | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:397:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 397 | LOG(1, LOG_LINE_NORMAL, L"Shim is%s available", ShimLoaded() ? L"" : L" not"); | ^~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:400:21: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 400 | TempStr = L"CSM type: Mac"; | ^ main.c:403:21: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 403 | TempStr = L"CSM type: UEFI"; | ^ main.c:406:21: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 406 | TempStr = L"CSM is not available"; | ^ main.c:409:21: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 409 | TempStr = L"CSM type: unknown"; | ^ main.c:414:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 414 | LOG(3, LOG_LINE_NORMAL, L"Trying to get variable info...."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:419:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 419 | LOG(1, LOG_LINE_NORMAL, L"Error %d; Unable to retrieve EFI variable capacity", Status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:421:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 421 | LOG(1, LOG_LINE_NORMAL, L"EFI non-volatile storage:"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:422:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 422 | LOG(1, LOG_LINE_NORMAL, L" Total storage: %ld", MaximumVariableStorageSize); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:423:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 423 | LOG(1, LOG_LINE_NORMAL, L" Remaining available: %ld", RemainingVariableStorageSize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:424:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 424 | LOG(1, LOG_LINE_NORMAL, L" Maximum variable size: %ld", MaximumVariableSize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:427:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 427 | LOG(1, LOG_LINE_NORMAL, L"EFI 1.x; EFI non-volatile storage information is unavailable"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:433:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 433 | LOG(1, LOG_LINE_NORMAL, L"System does%s support text mode", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:437:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 437 | LOG(1, LOG_LINE_NORMAL, L"System does%s support UGA Draw graphics mode", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:441:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 441 | LOG(1, LOG_LINE_NORMAL, L"System does%s support GOP graphics mode", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c: In function 'efi_main': main.c:488:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 488 | LOG(1, LOG_LINE_SEPARATOR, L"Initializing basic features"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:499:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 499 | LOG(1, LOG_LINE_NORMAL, L"Setting watchdog timer"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:515:35: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 515 | LOG(1, LOG_LINE_NORMAL, L"Pausing before re-scan"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:516:28: warning: passing argument 1 of 'egDisplayMessage' from incompatible pointer type [-Wincompatible-pointer-types] 516 | egDisplayMessage(L"Pausing before disk scan; please wait....", &BGColor, CENTER); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from global.h:56: ../libeg/libeg.h:145:34: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 145 | VOID egDisplayMessage(IN CHAR16 *Text, EG_PIXEL *BGColor, UINTN PositionCode); | ~~~~~~~~^~~~ main.c:527:30: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 527 | MainMenu.TimeoutText = L"Shutdown"; | ^ main.c:529:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 529 | LOG(1, LOG_LINE_SEPARATOR, L"Entering main loop"); | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:548:44: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 548 | LOG(1, LOG_LINE_SEPARATOR, L"Rebooting system"); | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:550:41: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 550 | LOG(1, LOG_LINE_NORMAL, L"Reboot FAILED!"); | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:556:44: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 556 | LOG(1, LOG_LINE_SEPARATOR, L"Shutting down system"); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:558:41: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 558 | LOG(1, LOG_LINE_NORMAL, L"Shutdown FAILED!"); | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:594:36: warning: passing argument 1 of 'BeginTextScreen' from incompatible pointer type [-Wincompatible-pointer-types] 594 | BeginTextScreen(L" "); | ^~~~ | | | short unsigned int * screen.h:88:33: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 88 | VOID BeginTextScreen(IN CHAR16 *Title); | ~~~~~~~~^~~~~ main.c:621:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 621 | LOG(1, LOG_LINE_SEPARATOR, L"Main loop has exited, but it should not have!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, main.c:625:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 625 | LOG(1, LOG_LINE_SEPARATOR, L"Shutdown after main loop exit has FAILED!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c menu.c -o menu.o menu.c:112:42: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 112 | static REFIT_MENU_ENTRY MenuEntryYes = { L"Yes", TAG_RETURN, 1, 0, 0, NULL, NULL, NULL }; | ^~~~~~ menu.c:112:42: note: (near initialization for 'MenuEntryYes.Title') menu.c:113:41: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 113 | static REFIT_MENU_ENTRY MenuEntryNo = { L"No", TAG_RETURN, 1, 0, 0, NULL, NULL, NULL }; | ^~~~~ menu.c:113:41: note: (near initialization for 'MenuEntryNo.Title') In file included from menu.c:61: menu.c: In function 'AddMenuInfoLine': menu.c:305:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 305 | LOG(3, LOG_LINE_NORMAL, L"Adding menu info line: '%s'", InfoLine); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ In file included from global.h:50, from menu.c:58: /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c: In function 'AddMenuEntry': menu.c:311:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 311 | LOG(3, LOG_LINE_NORMAL, L"Adding menu entry for '%s'", Entry->Title); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c: In function 'RunGenericMenu': menu.c:404:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 404 | LOG(2, LOG_LINE_NORMAL, L"Running menu screen: '%s'", Screen->Title); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c:441:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 441 | LOG(3, LOG_LINE_NORMAL, L"About to enter while() loop in RunGenericMenu()"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c:470:44: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 470 | SPrint(TimeoutMessage, 255, L"%s in %d seconds", Screen->TimeoutText, CurrentTime); | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:544:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 544 | IN CONST CHAR16 *fmt, menu.c:500:41: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 500 | LOG(1, LOG_LINE_NORMAL, L"Menu timeout expired"); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c:532:68: warning: passing argument 4 of 'StyleFunc' from incompatible pointer type [-Wincompatible-pointer-types] 532 | StyleFunc(Screen, &State, MENU_FUNCTION_PAINT_TIMEOUT, L""); | ^~~ | | | short unsigned int * menu.c:532:68: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' menu.c:542:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 542 | LOG(3, LOG_LINE_NORMAL, L"Processing keystroke (ScanCode = %d)....", key.ScanCode); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c:586:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 586 | LOG(3, LOG_LINE_NORMAL, L"Processing keystroke (UnicodeChar = %d)....", key.UnicodeChar); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c:617:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 617 | LOG(3, LOG_LINE_NORMAL, L"Processing pointer event"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c:669:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 669 | LOG(3, LOG_LINE_NORMAL, L"Returning %d from RunGenericMenu()", MenuExit); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c: In function 'TextMenuStyle': menu.c:822:45: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 822 | SPrint(TimeoutMessage, 255, L"%s ", ParamText); | ^~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:544:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 544 | IN CONST CHAR16 *fmt, menu.c: In function 'DrawTextWithTransparency': menu.c:894:13: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 894 | Text = L""; | ^ menu.c: In function 'PaintAll': menu.c:1115:34: warning: passing argument 1 of 'DrawTextWithTransparency' from incompatible pointer type [-Wincompatible-pointer-types] 1115 | DrawTextWithTransparency(L"", 0, textPosY); | ^~~ | | | short unsigned int * menu.c:888:49: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 888 | static VOID DrawTextWithTransparency(IN CHAR16 *Text, IN UINTN XPos, IN UINTN YPos) | ~~~~~~~~^~~~ menu.c:1120:36: warning: passing argument 1 of 'DrawTextWithTransparency' from incompatible pointer type [-Wincompatible-pointer-types] 1120 | DrawTextWithTransparency(L"", 0, textPosY); | ^~~ | | | short unsigned int * menu.c:888:49: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 888 | static VOID DrawTextWithTransparency(IN CHAR16 *Text, IN UINTN XPos, IN UINTN YPos) | ~~~~~~~~^~~~ menu.c: In function 'PaintSelection': menu.c:1158:38: warning: passing argument 1 of 'DrawTextWithTransparency' from incompatible pointer type [-Wincompatible-pointer-types] 1158 | DrawTextWithTransparency(L"", 0, textPosY); | ^~~ | | | short unsigned int * menu.c:888:49: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 888 | static VOID DrawTextWithTransparency(IN CHAR16 *Text, IN UINTN XPos, IN UINTN YPos) | ~~~~~~~~^~~~ menu.c:1163:39: warning: passing argument 1 of 'DrawTextWithTransparency' from incompatible pointer type [-Wincompatible-pointer-types] 1163 | DrawTextWithTransparency(L"", 0, textPosY); | ^~~ | | | short unsigned int * menu.c:888:49: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 888 | static VOID DrawTextWithTransparency(IN CHAR16 *Text, IN UINTN XPos, IN UINTN YPos) | ~~~~~~~~^~~~ menu.c: In function 'PaintArrows': menu.c:1200:59: warning: passing argument 2 of 'GetIcon' from incompatible pointer type [-Wincompatible-pointer-types] 1200 | EG_IMAGE * LeftArrow = GetIcon(&egemb_arrow_left, L"arrow_left"); | ^~~~~~~~~~~~~ | | | short unsigned int * menu.c:1171:73: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1171 | static EG_IMAGE * GetIcon(IN EG_EMBEDDED_IMAGE *BuiltInIcon, IN CHAR16 *ExternalFilename){ | ~~~~~~~~^~~~~~~~~~~~~~~~ menu.c:1207:61: warning: passing argument 2 of 'GetIcon' from incompatible pointer type [-Wincompatible-pointer-types] 1207 | EG_IMAGE * RightArrow = GetIcon(&egemb_arrow_right, L"arrow_right"); | ^~~~~~~~~~~~~~ | | | short unsigned int * menu.c:1171:73: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1171 | static EG_IMAGE * GetIcon(IN EG_EMBEDDED_IMAGE *BuiltInIcon, IN CHAR16 *ExternalFilename){ | ~~~~~~~~^~~~~~~~~~~~~~~~ menu.c: In function 'MainMenuStyle': menu.c:1287:41: warning: passing argument 1 of 'DrawTextWithTransparency' from incompatible pointer type [-Wincompatible-pointer-types] 1287 | DrawTextWithTransparency(L"", 0, textPosY + TextLineHeight()); | ^~~ | | | short unsigned int * menu.c:888:49: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 888 | static VOID DrawTextWithTransparency(IN CHAR16 *Text, IN UINTN XPos, IN UINTN YPos) | ~~~~~~~~^~~~ menu.c: In function 'WaitForInput': menu.c:1392:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1392 | LOG(3, LOG_LINE_NORMAL, L"Entering WaitForInput(), Timeout = %d", Timeout); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c: In function 'DisplaySimpleMessage': menu.c:1456:42: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 1456 | L"Press Enter to return to main menu", L"" }; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.c:1456:42: note: (near initialization for 'HideItemMenu.Hint1') menu.c:1456:81: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 1456 | L"Press Enter to return to main menu", L"" }; | ^~~ menu.c:1456:81: note: (near initialization for 'HideItemMenu.Hint2') menu.c:1458:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1458 | LOG(3, LOG_LINE_NORMAL, L"Entering DisplaySimpleMessage()"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c:1469:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1469 | LOG(1, LOG_LINE_NORMAL, L"%s - %s", Title, Message); | ^~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c: In function 'SaveHiddenList': menu.c:1521:24: warning: passing argument 2 of 'CheckError' from incompatible pointer type [-Wincompatible-pointer-types] 1521 | CheckError(Status, L"in SaveHiddenList()"); | ^~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from menu.c:59: screen.h:106:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 106 | BOOLEAN CheckError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ menu.c: In function 'ManageHiddenTags': menu.c:1532:42: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 1532 | REFIT_MENU_SCREEN HideItemMenu = { L"Manage Hidden Tags Menu", NULL, 0, NULL, 0, NULL, 0, NULL, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ menu.c:1532:42: note: (near initialization for 'HideItemMenu.Title') menu.c:1533:42: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 1533 | L"Select an option and press Enter or", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.c:1533:42: note: (near initialization for 'HideItemMenu.Hint1') menu.c:1534:42: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 1534 | L"press Esc to return to main menu without changes" }; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.c:1534:42: note: (near initialization for 'HideItemMenu.Hint2') menu.c:1538:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1538 | LOG(1, LOG_LINE_SEPARATOR, L"Managing hidden tags"); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c:1543:33: warning: passing argument 1 of 'ReadHiddenTags' from incompatible pointer type [-Wincompatible-pointer-types] 1543 | HiddenTags = ReadHiddenTags(L"HiddenTags"); | ^~~~~~~~~~~~~ | | | short unsigned int * In file included from menu.c:62: menu.h:131:32: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | CHAR16* ReadHiddenTags(CHAR16 *VarName); | ~~~~~~~~^~~~~~~ menu.c:1544:51: warning: passing argument 2 of 'RemoveInvalidFilenames' from incompatible pointer type [-Wincompatible-pointer-types] 1544 | SaveTags = RemoveInvalidFilenames(HiddenTags, L"HiddenTags"); | ^~~~~~~~~~~~~ | | | short unsigned int * menu.c:1477:69: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1477 | static BOOLEAN RemoveInvalidFilenames(CHAR16 *FilenameList, CHAR16 *VarName) { | ~~~~~~~~^~~~~~~ menu.c:1547:34: warning: passing argument 1 of 'ReadHiddenTags' from incompatible pointer type [-Wincompatible-pointer-types] 1547 | HiddenTools = ReadHiddenTags(L"HiddenTools"); | ^~~~~~~~~~~~~~ | | | short unsigned int * menu.h:131:32: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | CHAR16* ReadHiddenTags(CHAR16 *VarName); | ~~~~~~~~^~~~~~~ menu.c:1548:53: warning: passing argument 2 of 'RemoveInvalidFilenames' from incompatible pointer type [-Wincompatible-pointer-types] 1548 | SaveTools = RemoveInvalidFilenames(HiddenTools, L"HiddenTools"); | ^~~~~~~~~~~~~~ | | | short unsigned int * menu.c:1477:69: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1477 | static BOOLEAN RemoveInvalidFilenames(CHAR16 *FilenameList, CHAR16 *VarName) { | ~~~~~~~~^~~~~~~ menu.c:1551:35: warning: passing argument 1 of 'ReadHiddenTags' from incompatible pointer type [-Wincompatible-pointer-types] 1551 | HiddenLegacy = ReadHiddenTags(L"HiddenLegacy"); | ^~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:131:32: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | CHAR16* ReadHiddenTags(CHAR16 *VarName); | ~~~~~~~~^~~~~~~ menu.c:1554:37: warning: passing argument 1 of 'ReadHiddenTags' from incompatible pointer type [-Wincompatible-pointer-types] 1554 | HiddenFirmware = ReadHiddenTags(L"HiddenFirmware"); | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:131:32: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | CHAR16* ReadHiddenTags(CHAR16 *VarName); | ~~~~~~~~^~~~~~~ menu.c:1558:40: warning: passing argument 2 of 'AddMenuInfoLine' from incompatible pointer type [-Wincompatible-pointer-types] 1558 | AddMenuInfoLine(&HideItemMenu, L"Select a tag and press Enter to restore it"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.c:303:63: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 303 | VOID AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CHAR16 *InfoLine) | ~~~~~~~~^~~~~~~~ menu.c:1575:40: warning: passing argument 2 of 'SaveHiddenList' from incompatible pointer type [-Wincompatible-pointer-types] 1575 | SaveHiddenList(HiddenTags, L"HiddenTags"); | ^~~~~~~~~~~~~ | | | short unsigned int * menu.c:1515:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1515 | static VOID SaveHiddenList(IN CHAR16 *HiddenList, IN CHAR16 *VarName) { | ~~~~~~~~^~~~~~~ menu.c:1577:42: warning: passing argument 2 of 'SaveHiddenList' from incompatible pointer type [-Wincompatible-pointer-types] 1577 | SaveHiddenList(HiddenLegacy, L"HiddenLegacy"); | ^~~~~~~~~~~~~~~ | | | short unsigned int * menu.c:1515:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1515 | static VOID SaveHiddenList(IN CHAR16 *HiddenList, IN CHAR16 *VarName) { | ~~~~~~~~^~~~~~~ menu.c:1579:41: warning: passing argument 2 of 'SaveHiddenList' from incompatible pointer type [-Wincompatible-pointer-types] 1579 | SaveHiddenList(HiddenTools, L"HiddenTools"); | ^~~~~~~~~~~~~~ | | | short unsigned int * menu.c:1515:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1515 | static VOID SaveHiddenList(IN CHAR16 *HiddenList, IN CHAR16 *VarName) { | ~~~~~~~~^~~~~~~ menu.c:1584:44: warning: passing argument 2 of 'SaveHiddenList' from incompatible pointer type [-Wincompatible-pointer-types] 1584 | SaveHiddenList(HiddenFirmware, L"HiddenFirmware"); | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.c:1515:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1515 | static VOID SaveHiddenList(IN CHAR16 *HiddenList, IN CHAR16 *VarName) { | ~~~~~~~~^~~~~~~ menu.c:1588:30: warning: passing argument 1 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 1588 | DisplaySimpleMessage(L"Information", L"No hidden tags found"); | ^~~~~~~~~~~~~~ | | | short unsigned int * menu.c:1451:35: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1451 | VOID DisplaySimpleMessage(CHAR16* Title, CHAR16 *Message) { | ~~~~~~~~^~~~~ menu.c:1588:46: warning: passing argument 2 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 1588 | DisplaySimpleMessage(L"Information", L"No hidden tags found"); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.c:1451:50: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1451 | VOID DisplaySimpleMessage(CHAR16* Title, CHAR16 *Message) { | ~~~~~~~~^~~~~~~ menu.c: In function 'ReadHiddenTags': menu.c:1604:28: warning: passing argument 2 of 'CheckError' from incompatible pointer type [-Wincompatible-pointer-types] 1604 | CheckError(Status, L"in ReadHiddenTags()"); | ^~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * screen.h:106:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 106 | BOOLEAN CheckError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ menu.c: In function 'AddToHiddenTags': menu.c:1621:28: warning: passing argument 2 of 'CheckError' from incompatible pointer type [-Wincompatible-pointer-types] 1621 | CheckError(Status, L"in AddToHiddenTags()"); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * screen.h:106:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 106 | BOOLEAN CheckError(IN EFI_STATUS Status, IN CHAR16 *where); | ~~~~~~~~^~~~~ menu.c: In function 'HideEfiTag': menu.c:1649:45: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1649 | AddMenuInfoLine(HideItemMenu, PoolPrint(L"Really hide %s?", FullPath)); | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c:1654:56: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 1654 | if (ChosenOption && MyStriCmp(ChosenOption->Title, L"Yes") && (MenuExit == MENU_EXIT_ENTER)) { | ^~~~~~ | | | short unsigned int * In file included from menu.c:67: mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); menu.c:1660:37: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 1660 | MergeStrings(&FullPath, L":", L'\0'); | ^~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ menu.c: In function 'HideFirmwareTag': menu.c:1683:45: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1683 | AddMenuInfoLine(HideItemMenu, PoolPrint(L"Really hide '%s'?", Loader->Title)); | ^~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c:1687:40: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 1687 | if (MyStriCmp(ChosenOption->Title, L"Yes") && (MenuExit == MENU_EXIT_ENTER)) { | ^~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); menu.c:1688:25: warning: passing argument 1 of 'AddToHiddenTags' from incompatible pointer type [-Wincompatible-pointer-types] 1688 | AddToHiddenTags(L"HiddenFirmware", Loader->Title); | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.c:1613:37: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1613 | static VOID AddToHiddenTags(CHAR16 *VarName, CHAR16 *Pathname) { | ~~~~~~~~^~~~~~~ menu.c: In function 'HideLegacyTag': menu.c:1710:29: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 1710 | Name = StrDuplicate(L"Legacy OS"); | ^~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src menu.c:1711:45: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1711 | AddMenuInfoLine(HideItemMenu, PoolPrint(L"Really hide '%s'?", Name)); | ^~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c:1715:40: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 1715 | if (MyStriCmp(ChosenOption->Title, L"Yes") && (MenuExit == MENU_EXIT_ENTER)) { | ^~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); menu.c:1716:25: warning: passing argument 1 of 'AddToHiddenTags' from incompatible pointer type [-Wincompatible-pointer-types] 1716 | AddToHiddenTags(L"HiddenLegacy", Name); | ^~~~~~~~~~~~~~~ | | | short unsigned int * menu.c:1613:37: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1613 | static VOID AddToHiddenTags(CHAR16 *VarName, CHAR16 *Pathname) { | ~~~~~~~~^~~~~~~ menu.c: In function 'HideTag': menu.c:1727:41: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 1727 | L"Select an option and press Enter or", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.c:1727:41: note: (near initialization for 'HideItemMenu.Hint1') menu.c:1728:41: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 1728 | L"press Esc to return to main menu without changes" }; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.c:1728:41: note: (near initialization for 'HideItemMenu.Hint2') menu.c:1745:36: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 1745 | HideItemMenu.Title = L"Hide EFI OS Tag"; | ^ menu.c:1746:51: warning: passing argument 3 of 'HideEfiTag' from incompatible pointer type [-Wincompatible-pointer-types] 1746 | HideEfiTag(Loader, &HideItemMenu, L"HiddenTags"); | ^~~~~~~~~~~~~ | | | short unsigned int * menu.c:1630:90: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1630 | static BOOLEAN HideEfiTag(LOADER_ENTRY *Loader, REFIT_MENU_SCREEN *HideItemMenu, CHAR16 *VarName) { | ~~~~~~~~^~~~~~~ menu.c:1749:38: warning: passing argument 1 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 1749 | DisplaySimpleMessage(L"Cannot Hide Entry for Manual Boot Stanza", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.c:1451:35: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1451 | VOID DisplaySimpleMessage(CHAR16* Title, CHAR16 *Message) { | ~~~~~~~~^~~~~ menu.c:1750:38: warning: passing argument 2 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 1750 | L"You must edit refind.conf to remove this entry."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.c:1451:50: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1451 | VOID DisplaySimpleMessage(CHAR16* Title, CHAR16 *Message) { | ~~~~~~~~^~~~~~~ menu.c:1755:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 1755 | HideItemMenu.Title = L"Hide Legacy OS Tag"; | ^ menu.c:1760:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 1760 | HideItemMenu.Title = L"Hide Firmware Boot Option Tag"; | ^ menu.c:1772:34: warning: passing argument 1 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 1772 | DisplaySimpleMessage(L"Unable to Comply", | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.c:1451:35: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1451 | VOID DisplaySimpleMessage(CHAR16* Title, CHAR16 *Message) { | ~~~~~~~~^~~~~ menu.c:1773:34: warning: passing argument 2 of 'DisplaySimpleMessage' from incompatible pointer type [-Wincompatible-pointer-types] 1773 | L"To hide an internal tool, edit the 'showtools' line in refind.conf"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.c:1451:50: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1451 | VOID DisplaySimpleMessage(CHAR16* Title, CHAR16 *Message) { | ~~~~~~~~^~~~~~~ menu.c:1776:32: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 1776 | HideItemMenu.Title = L"Hide Tool Tag"; | ^ menu.c:1777:47: warning: passing argument 3 of 'HideEfiTag' from incompatible pointer type [-Wincompatible-pointer-types] 1777 | HideEfiTag(Loader, &HideItemMenu, L"HiddenTools"); | ^~~~~~~~~~~~~~ | | | short unsigned int * menu.c:1630:90: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1630 | static BOOLEAN HideEfiTag(LOADER_ENTRY *Loader, REFIT_MENU_SCREEN *HideItemMenu, CHAR16 *VarName) { | ~~~~~~~~^~~~~~~ menu.c: In function 'RunMenu': menu.c:1790:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1790 | LOG(2, LOG_LINE_NORMAL, L"Entering RunMenu()"); | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c: In function 'RunMainMenu': menu.c:1807:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1807 | LOG(2, LOG_LINE_NORMAL, L"Entering RunMainMenu()"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c:1835:40: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1835 | LOG(3, LOG_LINE_NORMAL, L"About to call RunGenericMenu() on subscreen '%s'", MenuTitle); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, menu.c:1840:40: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1840 | LOG(3, LOG_LINE_NORMAL, L"RunGenericMenu() has returned %d", MenuExit); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c mystrings.c -o mystrings.o mystrings.c: In function 'MergeStrings': mystrings.c:164:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 164 | Print(L"Error! Unable to allocate memory in MergeStrings()!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from mystrings.h:31, from mystrings.c:27: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, mystrings.c: In function 'MergeWords': mystrings.c:191:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 191 | Print(L"Error! Unable to allocate memory in MergeWords()!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, mystrings.c: In function 'LimitStringLength': mystrings.c:208:37: warning: passing argument 2 of 'MyStrStr' from incompatible pointer type [-Wincompatible-pointer-types] 208 | SubString = MyStrStr(TheString, L" "); | ^~~~~ | | | short unsigned int * mystrings.c:88:51: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 88 | CHAR16* MyStrStr (IN CHAR16 *String, IN CHAR16 *StrCharSet) | ~~~~~~~~~^~~~~~~~~~ mystrings.c:227:41: warning: passing argument 2 of 'MyStrStr' from incompatible pointer type [-Wincompatible-pointer-types] 227 | SubString = MyStrStr(TheString, L" "); | ^~~~~ | | | short unsigned int * mystrings.c:88:51: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 88 | CHAR16* MyStrStr (IN CHAR16 *String, IN CHAR16 *StrCharSet) | ~~~~~~~~~^~~~~~~~~~ mystrings.c: In function 'DeleteItemFromCsvList': mystrings.c:343:38: warning: passing argument 2 of 'MyStrStr' from incompatible pointer type [-Wincompatible-pointer-types] 343 | if ((Comma = MyStrStr(Found, L",")) == NULL) { | ^~~~ | | | short unsigned int * mystrings.c:88:51: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 88 | CHAR16* MyStrStr (IN CHAR16 *String, IN CHAR16 *StrCharSet) | ~~~~~~~~~^~~~~~~~~~ mystrings.c: In function 'GuidAsString': mystrings.c:521:32: warning: passing argument 3 of 'UnicodeSPrint' from incompatible pointer type [-Wincompatible-pointer-types] 521 | SPrint (TheString, 82, L"%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:544:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 544 | IN CONST CHAR16 *fmt, mystrings.c: In function 'GetTimeString': mystrings.c:562:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 562 | TimeStr = PoolPrint(L"unknown time"); | ^~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, mystrings.c:564:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 564 | TimeStr = PoolPrint(L"%02d:%02d:%02d", | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c pointer.c -o pointer.o /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c scan.c -o scan.o scan.c:129:47: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 129 | static REFIT_MENU_ENTRY MenuEntryAbout = { L"About rEFInd", TAG_ABOUT, 1, 0, 'A', NULL, NULL, NULL }; | ^~~~~~~~~~~~~~~ scan.c:129:47: note: (near initialization for 'MenuEntryAbout.Title') scan.c:130:47: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 130 | static REFIT_MENU_ENTRY MenuEntryReset = { L"Reboot Computer", TAG_REBOOT, 1, 0, 'R', NULL, NULL, NULL }; | ^~~~~~~~~~~~~~~~~~ scan.c:130:47: note: (near initialization for 'MenuEntryReset.Title') scan.c:131:47: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 131 | static REFIT_MENU_ENTRY MenuEntryShutdown = { L"Shut Down Computer", TAG_SHUTDOWN, 1, 0, 'U', NULL, NULL, NULL }; | ^~~~~~~~~~~~~~~~~~~~~ scan.c:131:47: note: (near initialization for 'MenuEntryShutdown.Title') scan.c:132:48: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 132 | static REFIT_MENU_ENTRY MenuEntryRotateCsr = { L"Change SIP Policy", TAG_CSR_ROTATE, 1, 0, 0, NULL, NULL, NULL }; | ^~~~~~~~~~~~~~~~~~~~ scan.c:132:48: note: (near initialization for 'MenuEntryRotateCsr.Title') scan.c:133:47: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 133 | static REFIT_MENU_ENTRY MenuEntryFirmware = { L"Reboot to Computer Setup Utility", TAG_FIRMWARE, 1, 0, 0, NULL, NULL, NULL }; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scan.c:133:47: note: (near initialization for 'MenuEntryFirmware.Title') scan.c:134:51: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 134 | static REFIT_MENU_ENTRY MenuEntryManageHidden = { L"Manage Hidden Tags Menu", TAG_HIDDEN, 1, 0, 0, NULL, NULL, NULL }; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ scan.c:134:51: note: (near initialization for 'MenuEntryManageHidden.Title') scan.c:135:46: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 135 | static REFIT_MENU_ENTRY MenuEntryInstall = { L"Install rEFInd to Disk", TAG_INSTALL, 1, 0, 0, NULL, NULL, NULL }; | ^~~~~~~~~~~~~~~~~~~~~~~~~ scan.c:135:46: note: (near initialization for 'MenuEntryInstall.Title') scan.c:136:48: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 136 | static REFIT_MENU_ENTRY MenuEntryBootorder = { L"Manage EFI boot order", TAG_BOOTORDER, 1, 0, 0, NULL, NULL, NULL }; | ^~~~~~~~~~~~~~~~~~~~~~~~ scan.c:136:48: note: (near initialization for 'MenuEntryBootorder.Title') scan.c:137:47: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 137 | static REFIT_MENU_ENTRY MenuEntryExit = { L"Exit rEFInd", TAG_EXIT, 1, 0, 0, NULL, NULL, NULL }; | ^~~~~~~~~~~~~~ scan.c:137:47: note: (near initialization for 'MenuEntryExit.Title') scan.c: In function 'InitializeSubScreen': scan.c:258:42: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 258 | SubScreen->Title = PoolPrint(L"Boot Options for %s on %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from global.h:50, from scan.c:58: /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, In file included from scan.c:72: scan.c:261:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 261 | LOG(2, LOG_LINE_NORMAL, L"Creating subscreen '%s'", SubScreen->Title); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:266:41: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 266 | LOG(2, LOG_LINE_NORMAL, L"Creating loader entry for '%s'", SubScreen->Title); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:267:51: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 267 | SubEntry->me.Title = StrDuplicate(L"Boot using default options"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src global.h:219:36: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 219 | #define SUBSCREEN_HINT1 L"Use arrow keys to move cursor; Enter to boot;" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:273:45: note: in expansion of macro 'SUBSCREEN_HINT1' 273 | SubScreen->Hint1 = StrDuplicate(SUBSCREEN_HINT1); | ^~~~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src global.h:221:36: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 221 | #define SUBSCREEN_HINT2_NO_EDITOR L"Esc to return to main menu" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:275:49: note: in expansion of macro 'SUBSCREEN_HINT2_NO_EDITOR' 275 | SubScreen->Hint2 = StrDuplicate(SUBSCREEN_HINT2_NO_EDITOR); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src global.h:220:36: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 220 | #define SUBSCREEN_HINT2 L"Insert or F2 to edit options; Esc to return to main menu" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:277:49: note: in expansion of macro 'SUBSCREEN_HINT2' 277 | SubScreen->Hint2 = StrDuplicate(SUBSCREEN_HINT2); | ^~~~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src scan.c: In function 'GenerateSubScreen': scan.c:308:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 308 | SubEntry->me.Title = L"Boot macOS with a 64-bit kernel"; | ^ scan.c:309:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 309 | SubEntry->LoadOptions = L"arch=x86_64"; | ^ scan.c:316:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 316 | SubEntry->me.Title = L"Boot macOS with a 32-bit kernel"; | ^ scan.c:317:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 317 | SubEntry->LoadOptions = L"arch=i386"; | ^ scan.c:326:43: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 326 | SubEntry->me.Title = L"Boot macOS in verbose mode"; | ^ scan.c:328:43: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 328 | SubEntry->LoadOptions = L"-v"; | ^ scan.c:335:43: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 335 | SubEntry->me.Title = L"Boot macOS in verbose mode (64-bit)"; | ^ scan.c:337:43: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 337 | SubEntry->LoadOptions = L"-v arch=x86_64"; | ^ scan.c:343:43: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 343 | SubEntry->me.Title = L"Boot macOS in verbose mode (32-bit)"; | ^ scan.c:345:43: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 345 | SubEntry->LoadOptions = L"-v arch=i386"; | ^ scan.c:352:43: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 352 | SubEntry->me.Title = L"Boot macOS in single user mode"; | ^ scan.c:354:43: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 354 | SubEntry->LoadOptions = L"-v -s"; | ^ scan.c:362:43: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 362 | SubEntry->me.Title = L"Boot macOS in safe mode"; | ^ scan.c:364:43: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 364 | SubEntry->LoadOptions = L"-v -x"; | ^ scan.c:370:31: warning: passing argument 2 of 'StrCpy' from incompatible pointer type [-Wincompatible-pointer-types] 370 | StrCpy(DiagsFileName, L"System\\Library\\CoreServices\\.diagnostics\\diags.efi"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:339:25: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 339 | IN CONST CHAR16 *Src scan.c:374:43: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 374 | SubEntry->me.Title = L"Run Apple Hardware Test"; | ^ global.h:230:24: warning: passing argument 2 of 'ReplaceSubstring' from incompatible pointer type [-Wincompatible-pointer-types] 230 | #define KERNEL_VERSION L"%v" | ^~~~~ | | | short unsigned int * scan.c:390:51: note: in expansion of macro 'KERNEL_VERSION' 390 | ReplaceSubstring(&(TokenList[1]), KERNEL_VERSION, KernelVersion); | ^~~~~~~~~~~~~~ In file included from scan.c:66: mystrings.h:55:65: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 55 | BOOLEAN ReplaceSubstring(IN OUT CHAR16 **MainString, IN CHAR16 *SearchString, IN CHAR16 *ReplString); | ~~~~~~~~^~~~~~~~~~~~ scan.c:397:105: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 397 | SubScreen->Entries[0]->Title = TokenList[0] ? StrDuplicate(TokenList[0]) : StrDuplicate(L"Boot Linux"); | ^~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src global.h:230:24: warning: passing argument 2 of 'ReplaceSubstring' from incompatible pointer type [-Wincompatible-pointer-types] 230 | #define KERNEL_VERSION L"%v" | ^~~~~ | | | short unsigned int * scan.c:401:51: note: in expansion of macro 'KERNEL_VERSION' 401 | ReplaceSubstring(&(TokenList[1]), KERNEL_VERSION, KernelVersion); | ^~~~~~~~~~~~~~ mystrings.h:55:65: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 55 | BOOLEAN ReplaceSubstring(IN OUT CHAR16 **MainString, IN CHAR16 *SearchString, IN CHAR16 *ReplString); | ~~~~~~~~^~~~~~~~~~~~ scan.c:403:95: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 403 | SubEntry->me.Title = TokenList[0] ? StrDuplicate(TokenList[0]) : StrDuplicate(L"Boot Linux"); | ^~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src scan.c:418:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 418 | SubEntry->me.Title = L"Run ELILO in interactive mode"; | ^ scan.c:419:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 419 | SubEntry->LoadOptions = L"-p"; | ^ scan.c:426:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 426 | SubEntry->me.Title = L"Boot Linux for a 17\" iMac or a 15\" MacBook Pro (*)"; | ^ scan.c:427:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 427 | SubEntry->LoadOptions = L"-d 0 i17"; | ^ scan.c:434:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 434 | SubEntry->me.Title = L"Boot Linux for a 20\" iMac (*)"; | ^ scan.c:435:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 435 | SubEntry->LoadOptions = L"-d 0 i20"; | ^ scan.c:442:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 442 | SubEntry->me.Title = L"Boot Linux for a Mac Mini (*)"; | ^ scan.c:443:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 443 | SubEntry->LoadOptions = L"-d 0 mini"; | ^ scan.c:448:36: warning: passing argument 2 of 'AddMenuInfoLine' from incompatible pointer type [-Wincompatible-pointer-types] 448 | AddMenuInfoLine(SubScreen, L"NOTE: This is an example. Entries"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from scan.c:63: menu.h:112:63: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | VOID AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CHAR16 *InfoLine); | ~~~~~~~~^~~~~~~~ scan.c:449:36: warning: passing argument 2 of 'AddMenuInfoLine' from incompatible pointer type [-Wincompatible-pointer-types] 449 | AddMenuInfoLine(SubScreen, L"marked with (*) may not work."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:112:63: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 112 | VOID AddMenuInfoLine(IN REFIT_MENU_SCREEN *Screen, IN CHAR16 *InfoLine); | ~~~~~~~~^~~~~~~~ scan.c:453:28: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 453 | Entry->LoadOptions = L"-s -h"; | ^ scan.c:457:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 457 | SubEntry->me.Title = L"Boot Windows from Hard Disk"; | ^ scan.c:458:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 458 | SubEntry->LoadOptions = L"-s -h"; | ^ scan.c:465:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 465 | SubEntry->me.Title = L"Boot Windows from CD-ROM"; | ^ scan.c:466:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 466 | SubEntry->LoadOptions = L"-s -c"; | ^ scan.c:473:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 473 | SubEntry->me.Title = L"Run XOM in text mode"; | ^ scan.c:474:39: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 474 | SubEntry->LoadOptions = L"-v"; | ^ scan.c: In function 'SetLoaderDefaults': scan.c:495:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 495 | LOG(3, LOG_LINE_NORMAL, L"Finding loader defaults for '%s'", Entry->me.Title); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:501:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 501 | LOG(4, LOG_LINE_NORMAL, L"Trying to load icon in same directory as loader...."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:512:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 512 | LOG(4, LOG_LINE_NORMAL, L"Creating icon hint based on loader path '%s'", LoaderPath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:524:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 524 | LOG(4, LOG_LINE_NORMAL, L"Merging hints based on filesystem name ('%s')", Volume->FsName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:526:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 526 | LOG(4, LOG_LINE_NORMAL, L"Merging hints based on partition name ('%s')", Volume->PartName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:530:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 530 | LOG(4, LOG_LINE_NORMAL, L"Adding hints based on specific loaders"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:532:20: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 532 | if (StriSubCmp(L"bzImage", NameClues) || StriSubCmp(L"vmlinuz", NameClues) || StriSubCmp(L"kernel", NameClues)) { | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ scan.c:532:57: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 532 | if (StriSubCmp(L"bzImage", NameClues) || StriSubCmp(L"vmlinuz", NameClues) || StriSubCmp(L"kernel", NameClues)) { | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ scan.c:532:94: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 532 | if (StriSubCmp(L"bzImage", NameClues) || StriSubCmp(L"vmlinuz", NameClues) || StriSubCmp(L"kernel", NameClues)) { | ^~~~~~~~~ | | | short unsigned int * mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ scan.c:537:35: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 537 | MergeStrings(&OSIconName, L"linux", L','); | ^~~~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ scan.c:542:27: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 542 | } else if (StriSubCmp(L"refit", LoaderPath)) { | ^~~~~~~~ | | | short unsigned int * mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ scan.c:543:35: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 543 | MergeStrings(&OSIconName, L"refit", L','); | ^~~~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ scan.c:546:27: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 546 | } else if (StriSubCmp(L"refind", LoaderPath)) { | ^~~~~~~~~ | | | short unsigned int * mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ scan.c:547:35: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 547 | MergeStrings(&OSIconName, L"refind", L','); | ^~~~~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ scan.c:82:33: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 82 | #define MACOSX_LOADER_PATH ( MACOSX_LOADER_DIR L"\\boot.efi" ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:550:27: note: in expansion of macro 'MACOSX_LOADER_PATH' 550 | } else if (StriSubCmp(MACOSX_LOADER_PATH, LoaderPath)) { | ^~~~~~~~~~~~~~~~~~ mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ scan.c:551:35: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 551 | MergeStrings(&OSIconName, L"mac", L','); | ^~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ scan.c:555:37: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 555 | } else if (MyStriCmp(NameClues, L"diags.efi")) { | ^~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); scan.c:556:35: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 556 | MergeStrings(&OSIconName, L"hwtest", L','); | ^~~~~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ scan.c:557:37: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 557 | } else if (MyStriCmp(NameClues, L"e.efi") || MyStriCmp(NameClues, L"elilo.efi") || StriSubCmp(L"elilo", NameClues)) { | ^~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); scan.c:557:71: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 557 | } else if (MyStriCmp(NameClues, L"e.efi") || MyStriCmp(NameClues, L"elilo.efi") || StriSubCmp(L"elilo", NameClues)) { | ^~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); scan.c:557:99: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 557 | } else if (MyStriCmp(NameClues, L"e.efi") || MyStriCmp(NameClues, L"elilo.efi") || StriSubCmp(L"elilo", NameClues)) { | ^~~~~~~~ | | | short unsigned int * mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ scan.c:558:35: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 558 | MergeStrings(&OSIconName, L"elilo,linux", L','); | ^~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ scan.c:563:27: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 563 | } else if (StriSubCmp(L"grub", NameClues)) { | ^~~~~~~ | | | short unsigned int * mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ scan.c:564:35: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 564 | MergeStrings(&OSIconName, L"grub,linux", L','); | ^~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ scan.c:568:37: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 568 | } else if (MyStriCmp(NameClues, L"cdboot.efi") || | ^~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); scan.c:569:37: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 569 | MyStriCmp(NameClues, L"bootmgr.efi") || | ^~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); scan.c:570:37: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 570 | MyStriCmp(NameClues, L"bootmgfw.efi") || | ^~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); scan.c:571:37: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 571 | MyStriCmp(NameClues, L"bkpbootmgfw.efi")) { | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); scan.c:572:35: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 572 | MergeStrings(&OSIconName, L"win8", L','); | ^~~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ scan.c:576:37: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 576 | } else if (MyStriCmp(NameClues, L"xom.efi")) { | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); scan.c:577:35: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 577 | MergeStrings(&OSIconName, L"xom,win,win8", L','); | ^~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ scan.c:582:25: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 582 | else if (StriSubCmp(L"ipxe", NameClues)) { | ^~~~~~~ | | | short unsigned int * mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ scan.c:585:35: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 585 | MergeStrings(&OSIconName, L"network", L','); | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ scan.c:592:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 592 | LOG(4, LOG_LINE_NORMAL, L"Trying to locate an icon based on hints '%s'", OSIconName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:593:50: warning: passing argument 2 of 'LoadOSIcon' from incompatible pointer type [-Wincompatible-pointer-types] 593 | Entry->me.Image = LoadOSIcon(OSIconName, L"unknown", FALSE); | ^~~~~~~~~~ | | | short unsigned int * In file included from scan.c:62: icns.h:52:66: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 52 | EG_IMAGE * LoadOSIcon(IN CHAR16 *OSIconName OPTIONAL, IN CHAR16 *FallbackIconName, BOOLEAN BootLogo); | ~~~~~~~~^~~~~~~~~~~~~~~~ scan.c: In function 'AddEfiLoaderEntry': scan.c:616:35: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 616 | FullTitle = PoolPrint(L"Reboot to %s", LoaderTitle); | ^~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:617:64: warning: pointer type mismatch in conditional expression 617 | Entry->me.Title = StrDuplicate((FullTitle) ? FullTitle : L"Unknown"); | ^ scan.c:620:65: warning: pointer type mismatch in conditional expression 620 | Entry->Title = StrDuplicate((LoaderTitle) ? LoaderTitle : L"Unknown"); // without "Reboot to" | ^ scan.c:623:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 623 | LOG(2, LOG_LINE_NORMAL, L"EFI loader path = '%s'", TempStr); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:627:35: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 627 | MergeStrings(&OSIconName, L"unknown", L','); | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ scan.c: In function 'AddLoaderEntry': scan.c:660:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 660 | LOG(1, LOG_LINE_NORMAL, L"Adding loader entry for '%s'", Entry->Title); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:661:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 661 | LOG(2, LOG_LINE_NORMAL, L"Loader path is '%s'", LoaderPath); | ^~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:665:63: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 665 | if ((Volume->VolName) && (!MyStriCmp(Volume->VolName, L"Recovery HD"))) | ^~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); scan.c:666:41: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 666 | Entry->me.Title = PoolPrint(L"Boot %s from %s ", | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:669:41: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 669 | Entry->me.Title = PoolPrint(L"Boot %s ", (LoaderTitle != NULL) ? LoaderTitle : LoaderPath); | ^~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:673:46: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 673 | Entry->LoaderPath = StrDuplicate(L"\\"); | ^~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src scan.c:682:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 682 | LOG(3, LOG_LINE_NORMAL, L"Have successfully created menu entry for '%s'", Entry->Title); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:684:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 684 | LOG(1, LOG_LINE_NORMAL, L"Unable to initialize loader entry in AddLoaderEntry()!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c: In function 'AddLoaderListEntry': scan.c:724:24: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 724 | if (StriSubCmp(L"vmlinuz-0-rescue", NewEntry->FileName)) | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ scan.c:726:54: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 726 | while ((CurrentEntry != NULL) && !StriSubCmp(L"vmlinuz-0-rescue", CurrentEntry->FileName) && | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ scan.c: In function 'DuplicatesFallback': scan.c:89:33: warning: passing argument 2 of 'FileExists' from incompatible pointer type [-Wincompatible-pointer-types] 89 | #define FALLBACK_FULLNAME L"EFI\\BOOT\\bootx64.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:821:80: note: in expansion of macro 'FALLBACK_FULLNAME' 821 | if (!FileExists(Volume->RootDir, FileName) || !FileExists(Volume->RootDir, FALLBACK_FULLNAME)) | ^~~~~~~~~~~~~~~~~ In file included from scan.c:61: lib.h:109:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 109 | BOOLEAN FileExists(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *RelativePath); | ~~~~~~~~^~~~~~~~~~~~ scan.c:89:33: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 89 | #define FALLBACK_FULLNAME L"EFI\\BOOT\\bootx64.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:826:29: note: in expansion of macro 'FALLBACK_FULLNAME' 826 | if (MyStriCmp(FileName, FALLBACK_FULLNAME)) | ^~~~~~~~~~~~~~~~~ mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); scan.c: In function 'LogMenuEntries': scan.c:903:40: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 903 | LOG(LogLevel, LOG_LINE_NORMAL, L"MainMenu currently has %ld entries; they are....", MainMenu.EntryCount); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:908:48: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 908 | LOG(LogLevel, LOG_LINE_NORMAL, L" --> Menu item %ld is '%s'", i, MainMenu.Entries[i]->Title); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c: In function 'ScanLoaderDir': scan.c:929:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 929 | LOG(3, LOG_LINE_NORMAL, L"Beginning to scan directory '%s' for '%s'", Path, Pattern); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:945:36: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 945 | MyStriCmp(Extension, L".icns") || | ^~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); scan.c:946:36: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 946 | MyStriCmp(Extension, L".png") || | ^~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); scan.c:90:33: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 90 | #define FALLBACK_BASENAME L"bootx64.efi" | ^~~~~~~~~~~~~~ | | | short unsigned int * scan.c:947:46: note: in expansion of macro 'FALLBACK_BASENAME' 947 | (MyStriCmp(DirEntry->FileName, FALLBACK_BASENAME) && (MyStriCmp(Path, L"EFI\\BOOT"))) || | ^~~~~~~~~~~~~~~~~ mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); scan.c:947:85: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 947 | (MyStriCmp(DirEntry->FileName, FALLBACK_BASENAME) && (MyStriCmp(Path, L"EFI\\BOOT"))) || | ^~~~~~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); scan.c:84:33: warning: passing argument 4 of 'FilenameIn' from incompatible pointer type [-Wincompatible-pointer-types] 84 | #define SHELL_NAMES L"\\EFI\\tools\\shell.efi,\\EFI\\tools\\shellx64.efi,\\shell.efi,\\shellx64.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:948:60: note: in expansion of macro 'SHELL_NAMES' 948 | FilenameIn(Volume, Path, DirEntry->FileName, SHELL_NAMES) || | ^~~~~~~~~~~ lib.h:131:99: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | BOOLEAN FilenameIn(IN REFIT_VOLUME *Volume, IN CHAR16 *Directory, IN CHAR16 *Filename, IN CHAR16 *List); | ~~~~~~~~^~~~ scan.c:969:34: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 969 | IsLinux = (StriSubCmp(L"bzImage", NewLoader->FileName) || | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ scan.c:970:34: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 970 | StriSubCmp(L"vmlinuz", NewLoader->FileName) || | ^~~~~~~~~~ | | | short unsigned int * mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ scan.c:971:34: warning: passing argument 1 of 'StriSubCmp' from incompatible pointer type [-Wincompatible-pointer-types] 971 | StriSubCmp(L"kernel", NewLoader->FileName)); | ^~~~~~~~~ | | | short unsigned int * mystrings.h:42:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 42 | BOOLEAN StriSubCmp(IN CHAR16 *TargetStr, IN CHAR16 *BigStr); | ~~~~~~~~^~~~~~~~~ scan.c:994:34: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 994 | Message = PoolPrint(L"while scanning the %s directory on %s", Path, Volume->VolName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:996:34: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 996 | Message = PoolPrint(L"while scanning the root directory on %s", Path, Volume->VolName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1002:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1002 | LOG(3, LOG_LINE_NORMAL, L"Done scanning directory '%s' for '%s'", Path, Pattern); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c: In function 'RuniPXEDiscover': scan.c:119:33: warning: passing argument 2 of 'FileDevicePath' from incompatible pointer type [-Wincompatible-pointer-types] 119 | #define IPXE_DISCOVER_NAME L"\\efi\\tools\\ipxe_discover.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1016:40: note: in expansion of macro 'IPXE_DISCOVER_NAME' 1016 | FilePath = FileDevicePath (Volume, IPXE_DISCOVER_NAME); | ^~~~~~~~~~~~~~~~~~ /usr/include/efi/efilib.h:869:30: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 869 | IN CHAR16 *FileName | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ scan.c: In function 'ScanNetboot': scan.c:120:33: warning: initialization of 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 120 | #define IPXE_NAME L"\\efi\\tools\\ipxe.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~ scan.c:1031:35: note: in expansion of macro 'IPXE_NAME' 1031 | CHAR16 *iPXEFileName = IPXE_NAME; | ^~~~~~~~~ scan.c:1035:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1035 | LOG(1, LOG_LINE_NORMAL, L"Scanning for iPXE boot options"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:119:33: warning: passing argument 2 of 'FileExists' from incompatible pointer type [-Wincompatible-pointer-types] 119 | #define IPXE_DISCOVER_NAME L"\\efi\\tools\\ipxe_discover.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1036:41: note: in expansion of macro 'IPXE_DISCOVER_NAME' 1036 | if (FileExists(SelfVolume->RootDir, IPXE_DISCOVER_NAME) && | ^~~~~~~~~~~~~~~~~~ lib.h:109:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 109 | BOOLEAN FileExists(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *RelativePath); | ~~~~~~~~^~~~~~~~~~~~ scan.c:120:33: warning: passing argument 2 of 'FileExists' from incompatible pointer type [-Wincompatible-pointer-types] 120 | #define IPXE_NAME L"\\efi\\tools\\ipxe.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1037:41: note: in expansion of macro 'IPXE_NAME' 1037 | FileExists(SelfVolume->RootDir, IPXE_NAME) && | ^~~~~~~~~ lib.h:109:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 109 | BOOLEAN FileExists(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *RelativePath); | ~~~~~~~~^~~~~~~~~~~~ scan.c:119:33: warning: passing argument 2 of 'IsValidLoader' from incompatible pointer type [-Wincompatible-pointer-types] 119 | #define IPXE_DISCOVER_NAME L"\\efi\\tools\\ipxe_discover.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1038:44: note: in expansion of macro 'IPXE_DISCOVER_NAME' 1038 | IsValidLoader(SelfVolume->RootDir, IPXE_DISCOVER_NAME) && | ^~~~~~~~~~~~~~~~~~ In file included from scan.c:69: launch_efi.h:85:57: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 85 | UINTN IsValidLoader(EFI_FILE_PROTOCOL *RootDir, CHAR16 *FileName); | ~~~~~~~~^~~~~~~~ scan.c:120:33: warning: passing argument 2 of 'IsValidLoader' from incompatible pointer type [-Wincompatible-pointer-types] 120 | #define IPXE_NAME L"\\efi\\tools\\ipxe.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1039:44: note: in expansion of macro 'IPXE_NAME' 1039 | IsValidLoader(SelfVolume->RootDir, IPXE_NAME)) { | ^~~~~~~~~ launch_efi.h:85:57: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 85 | UINTN IsValidLoader(EFI_FILE_PROTOCOL *RootDir, CHAR16 *FileName); | ~~~~~~~~^~~~~~~~ scan.c: In function 'ScanMacOsLoader': scan.c:1060:84: warning: passing argument 3 of 'FilenameIn' from incompatible pointer type [-Wincompatible-pointer-types] 1060 | if (FileExists(Volume->RootDir, FullFileName) && !FilenameIn(Volume, PathName, L"boot.efi", GlobalConfig.DontScanFiles)) { | ^~~~~~~~~~~ | | | short unsigned int * lib.h:131:78: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | BOOLEAN FilenameIn(IN REFIT_VOLUME *Volume, IN CHAR16 *Directory, IN CHAR16 *Filename, IN CHAR16 *List); | ~~~~~~~~^~~~~~~~ scan.c:1061:38: warning: passing argument 2 of 'AddLoaderEntry' from incompatible pointer type [-Wincompatible-pointer-types] 1061 | AddLoaderEntry(FullFileName, L"macOS", Volume, TRUE); | ^~~~~~~~ | | | short unsigned int * scan.c:651:76: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 651 | static LOADER_ENTRY * AddLoaderEntry(IN OUT CHAR16 *LoaderPath, IN CHAR16 *LoaderTitle, | ~~~~~~~~^~~~~~~~~~~ scan.c: In function 'ScanEfiFiles': scan.c:1081:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1081 | LOG(1, LOG_LINE_NORMAL, L"Scanning EFI files on %s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, global.h:203:33: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 203 | #define LOADER_MATCH_PATTERNS L"*.efi,*.EFI" | ^~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1083:38: note: in expansion of macro 'LOADER_MATCH_PATTERNS' 1083 | MatchPatterns = StrDuplicate(LOADER_MATCH_PATTERNS); | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src scan.c:125:33: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 125 | #define LINUX_MATCH_PATTERNS L"vmlinuz*,bzImage*,kernel*" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1085:42: note: in expansion of macro 'LINUX_MATCH_PATTERNS' 1085 | MergeStrings(&MatchPatterns, LINUX_MATCH_PATTERNS, L','); | ^~~~~~~~~~~~~~~~~~~~ mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ scan.c:81:32: warning: passing argument 2 of 'ShouldScan' from incompatible pointer type [-Wincompatible-pointer-types] 81 | #define MACOSX_LOADER_DIR L"System\\Library\\CoreServices" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1088:32: note: in expansion of macro 'MACOSX_LOADER_DIR' 1088 | if (ShouldScan(Volume, MACOSX_LOADER_DIR)) { | ^~~~~~~~~~~~~~~~~ scan.c:758:57: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 758 | static BOOLEAN ShouldScan(REFIT_VOLUME *Volume, CHAR16 *Path) { | ~~~~~~~~^~~~ scan.c:82:33: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 82 | #define MACOSX_LOADER_PATH ( MACOSX_LOADER_DIR L"\\boot.efi" ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1089:37: note: in expansion of macro 'MACOSX_LOADER_PATH' 1089 | FileName = StrDuplicate(MACOSX_LOADER_PATH); | ^~~~~~~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src scan.c:1092:42: warning: passing argument 2 of 'DirIterOpen' from incompatible pointer type [-Wincompatible-pointer-types] 1092 | DirIterOpen(Volume->RootDir, L"\\", &EfiDirIter); | ^~~~~ | | | short unsigned int * lib.h:113:60: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 113 | VOID DirIterOpen(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *RelativePath OPTIONAL, OUT REFIT_DIR_ITER *DirIter); | ~~~~~~~~^~~~~~~~~~~~ scan.c:1095:42: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1095 | FileName = PoolPrint(L"%s\\%s", EfiDirEntry->FileName, MACOSX_LOADER_PATH); | ^~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1098:42: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1098 | FileName = PoolPrint(L"%s\\%s", EfiDirEntry->FileName, L"boot.efi"); | ^~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1107:37: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 1107 | FileName = StrDuplicate(L"System\\Library\\CoreServices\\xom.efi"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src scan.c:81:32: warning: passing argument 2 of 'FilenameIn' from incompatible pointer type [-Wincompatible-pointer-types] 81 | #define MACOSX_LOADER_DIR L"System\\Library\\CoreServices" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1108:78: note: in expansion of macro 'MACOSX_LOADER_DIR' 1108 | if (FileExists(Volume->RootDir, FileName) && !FilenameIn(Volume, MACOSX_LOADER_DIR, L"xom.efi", | ^~~~~~~~~~~~~~~~~ lib.h:131:56: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | BOOLEAN FilenameIn(IN REFIT_VOLUME *Volume, IN CHAR16 *Directory, IN CHAR16 *Filename, IN CHAR16 *List); | ~~~~~~~~^~~~~~~~~ scan.c:1108:97: warning: passing argument 3 of 'FilenameIn' from incompatible pointer type [-Wincompatible-pointer-types] 1108 | if (FileExists(Volume->RootDir, FileName) && !FilenameIn(Volume, MACOSX_LOADER_DIR, L"xom.efi", | ^~~~~~~~~~ | | | short unsigned int * lib.h:131:78: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | BOOLEAN FilenameIn(IN REFIT_VOLUME *Volume, IN CHAR16 *Directory, IN CHAR16 *Filename, IN CHAR16 *List); | ~~~~~~~~^~~~~~~~ scan.c:1110:42: warning: passing argument 2 of 'AddLoaderEntry' from incompatible pointer type [-Wincompatible-pointer-types] 1110 | AddLoaderEntry(FileName, L"Windows XP (XoM)", Volume, TRUE); | ^~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:651:76: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 651 | static LOADER_ENTRY * AddLoaderEntry(IN OUT CHAR16 *LoaderPath, IN CHAR16 *LoaderTitle, | ~~~~~~~~^~~~~~~~~~~ scan.c:1118:32: warning: passing argument 2 of 'ShouldScan' from incompatible pointer type [-Wincompatible-pointer-types] 1118 | if (ShouldScan(Volume, L"EFI\\Microsoft\\Boot")) { | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:758:57: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 758 | static BOOLEAN ShouldScan(REFIT_VOLUME *Volume, CHAR16 *Path) { | ~~~~~~~~^~~~ scan.c:1119:37: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 1119 | FileName = StrDuplicate(L"EFI\\Microsoft\\Boot\\bkpbootmgfw.efi"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src scan.c:1120:79: warning: passing argument 2 of 'FilenameIn' from incompatible pointer type [-Wincompatible-pointer-types] 1120 | if (FileExists(Volume->RootDir, FileName) && !FilenameIn(Volume, L"EFI\\Microsoft\\Boot", L"bkpbootmgfw.efi", | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * lib.h:131:56: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | BOOLEAN FilenameIn(IN REFIT_VOLUME *Volume, IN CHAR16 *Directory, IN CHAR16 *Filename, IN CHAR16 *List); | ~~~~~~~~^~~~~~~~~ scan.c:1120:104: warning: passing argument 3 of 'FilenameIn' from incompatible pointer type [-Wincompatible-pointer-types] 1120 | if (FileExists(Volume->RootDir, FileName) && !FilenameIn(Volume, L"EFI\\Microsoft\\Boot", L"bkpbootmgfw.efi", | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * lib.h:131:78: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | BOOLEAN FilenameIn(IN REFIT_VOLUME *Volume, IN CHAR16 *Directory, IN CHAR16 *Filename, IN CHAR16 *List); | ~~~~~~~~^~~~~~~~ scan.c:1122:46: warning: passing argument 2 of 'AddLoaderEntry' from incompatible pointer type [-Wincompatible-pointer-types] 1122 | AddLoaderEntry(FileName, L"Microsoft EFI boot (Boot Repair backup)", Volume, TRUE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:651:76: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 651 | static LOADER_ENTRY * AddLoaderEntry(IN OUT CHAR16 *LoaderPath, IN CHAR16 *LoaderTitle, | ~~~~~~~~^~~~~~~~~~~ scan.c:1128:37: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 1128 | FileName = StrDuplicate(L"EFI\\Microsoft\\Boot\\bootmgfw.efi"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src scan.c:1130:37: warning: passing argument 2 of 'FilenameIn' from incompatible pointer type [-Wincompatible-pointer-types] 1130 | !FilenameIn(Volume, L"EFI\\Microsoft\\Boot", L"bootmgfw.efi", GlobalConfig.DontScanFiles)) { | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * lib.h:131:56: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | BOOLEAN FilenameIn(IN REFIT_VOLUME *Volume, IN CHAR16 *Directory, IN CHAR16 *Filename, IN CHAR16 *List); | ~~~~~~~~^~~~~~~~~ scan.c:1130:62: warning: passing argument 3 of 'FilenameIn' from incompatible pointer type [-Wincompatible-pointer-types] 1130 | !FilenameIn(Volume, L"EFI\\Microsoft\\Boot", L"bootmgfw.efi", GlobalConfig.DontScanFiles)) { | ^~~~~~~~~~~~~~~ | | | short unsigned int * lib.h:131:78: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | BOOLEAN FilenameIn(IN REFIT_VOLUME *Volume, IN CHAR16 *Directory, IN CHAR16 *Filename, IN CHAR16 *List); | ~~~~~~~~^~~~~~~~ scan.c:1132:50: warning: passing argument 2 of 'AddLoaderEntry' from incompatible pointer type [-Wincompatible-pointer-types] 1132 | AddLoaderEntry(FileName, L"Supposed Microsoft EFI boot (probably GRUB)", Volume, TRUE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:651:76: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 651 | static LOADER_ENTRY * AddLoaderEntry(IN OUT CHAR16 *LoaderPath, IN CHAR16 *LoaderTitle, | ~~~~~~~~^~~~~~~~~~~ scan.c:1134:50: warning: passing argument 2 of 'AddLoaderEntry' from incompatible pointer type [-Wincompatible-pointer-types] 1134 | AddLoaderEntry(FileName, L"Microsoft EFI boot", Volume, TRUE); | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:651:76: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 651 | static LOADER_ENTRY * AddLoaderEntry(IN OUT CHAR16 *LoaderPath, IN CHAR16 *LoaderTitle, | ~~~~~~~~^~~~~~~~~~~ scan.c:1142:35: warning: passing argument 2 of 'ScanLoaderDir' from incompatible pointer type [-Wincompatible-pointer-types] 1142 | if (ScanLoaderDir(Volume, L"\\", MatchPatterns)) | ^~~~~ | | | short unsigned int * scan.c:919:66: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 919 | static BOOLEAN ScanLoaderDir(IN REFIT_VOLUME *Volume, IN CHAR16 *Path, IN CHAR16 *Pattern) | ~~~~~~~~^~~~ scan.c:1146:38: warning: passing argument 2 of 'DirIterOpen' from incompatible pointer type [-Wincompatible-pointer-types] 1146 | DirIterOpen(Volume->RootDir, L"EFI", &EfiDirIter); | ^~~~~~ | | | short unsigned int * lib.h:113:60: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 113 | VOID DirIterOpen(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *RelativePath OPTIONAL, OUT REFIT_DIR_ITER *DirIter); | ~~~~~~~~^~~~~~~~~~~~ scan.c:1148:50: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 1148 | if (MyStriCmp(EfiDirEntry->FileName, L"tools") || EfiDirEntry->FileName[0] == '.') | ^~~~~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); scan.c:1150:34: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1150 | FileName = PoolPrint(L"EFI\\%s", EfiDirEntry->FileName); | ^~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1157:30: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1157 | Temp = PoolPrint(L"while scanning the EFI directory on %s", Volume->VolName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:89:33: warning: passing argument 2 of 'FileExists' from incompatible pointer type [-Wincompatible-pointer-types] 89 | #define FALLBACK_FULLNAME L"EFI\\BOOT\\bootx64.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1185:63: note: in expansion of macro 'FALLBACK_FULLNAME' 1185 | if (ScanFallbackLoader && FileExists(Volume->RootDir, FALLBACK_FULLNAME) && ShouldScan(Volume, L"EFI\\BOOT") && | ^~~~~~~~~~~~~~~~~ lib.h:109:62: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 109 | BOOLEAN FileExists(IN EFI_FILE_PROTOCOL *BaseDir, IN CHAR16 *RelativePath); | ~~~~~~~~^~~~~~~~~~~~ scan.c:1185:104: warning: passing argument 2 of 'ShouldScan' from incompatible pointer type [-Wincompatible-pointer-types] 1185 | if (ScanFallbackLoader && FileExists(Volume->RootDir, FALLBACK_FULLNAME) && ShouldScan(Volume, L"EFI\\BOOT") && | ^~~~~~~~~~~~ | | | short unsigned int * scan.c:758:57: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 758 | static BOOLEAN ShouldScan(REFIT_VOLUME *Volume, CHAR16 *Path) { | ~~~~~~~~^~~~ scan.c:1186:33: warning: passing argument 2 of 'FilenameIn' from incompatible pointer type [-Wincompatible-pointer-types] 1186 | !FilenameIn(Volume, L"EFI\\BOOT", FALLBACK_BASENAME, GlobalConfig.DontScanFiles)) { | ^~~~~~~~~~~~ | | | short unsigned int * lib.h:131:56: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | BOOLEAN FilenameIn(IN REFIT_VOLUME *Volume, IN CHAR16 *Directory, IN CHAR16 *Filename, IN CHAR16 *List); | ~~~~~~~~^~~~~~~~~ scan.c:90:33: warning: passing argument 3 of 'FilenameIn' from incompatible pointer type [-Wincompatible-pointer-types] 90 | #define FALLBACK_BASENAME L"bootx64.efi" | ^~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1186:47: note: in expansion of macro 'FALLBACK_BASENAME' 1186 | !FilenameIn(Volume, L"EFI\\BOOT", FALLBACK_BASENAME, GlobalConfig.DontScanFiles)) { | ^~~~~~~~~~~~~~~~~ lib.h:131:78: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | BOOLEAN FilenameIn(IN REFIT_VOLUME *Volume, IN CHAR16 *Directory, IN CHAR16 *Filename, IN CHAR16 *List); | ~~~~~~~~^~~~~~~~ scan.c:89:33: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 89 | #define FALLBACK_FULLNAME L"EFI\\BOOT\\bootx64.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1187:37: note: in expansion of macro 'FALLBACK_FULLNAME' 1187 | Temp = StrDuplicate(FALLBACK_FULLNAME); | ^~~~~~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src scan.c:1188:38: warning: passing argument 2 of 'AddLoaderEntry' from incompatible pointer type [-Wincompatible-pointer-types] 1188 | AddLoaderEntry(Temp, L"Fallback boot loader", Volume, TRUE); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:651:76: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 651 | static LOADER_ENTRY * AddLoaderEntry(IN OUT CHAR16 *LoaderPath, IN CHAR16 *LoaderTitle, | ~~~~~~~~^~~~~~~~~~~ scan.c:1193:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1193 | LOG(1, LOG_LINE_NORMAL, L"Called ScanEfiFiles() on an invalid volume"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c: In function 'ScanInternal': scan.c:1201:31: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1201 | LOG(1, LOG_LINE_THIN_SEP, L"Scanning for internal EFI-mode boot loaders"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c: In function 'ScanExternal': scan.c:1213:31: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1213 | LOG(1, LOG_LINE_THIN_SEP, L"Scanning for external EFI-mode boot loaders"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c: In function 'ScanOptical': scan.c:1225:31: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1225 | LOG(1, LOG_LINE_THIN_SEP, L"Scanning for bootable EFI-mode optical discs"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c: In function 'ScanFirmwareDefined': scan.c:1249:35: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1249 | LOG(1, LOG_LINE_THIN_SEP, L"Scanning for EFI firmware-defined boot options"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1250:39: warning: passing argument 1 of 'ReadHiddenTags' from incompatible pointer type [-Wincompatible-pointer-types] 1250 | DontScanFirmware = ReadHiddenTags(L"HiddenFirmware"); | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:131:32: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | CHAR16* ReadHiddenTags(CHAR16 *VarName); | ~~~~~~~~^~~~~~~ scan.c:1251:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1251 | LOG(2, LOG_LINE_NORMAL, L"GlobalConfig.DontScanFirmware = '%s'", GlobalConfig.DontScanFirmware); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1252:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1252 | LOG(2, LOG_LINE_NORMAL, L"Firmware hidden tags = '%s'", DontScanFirmware); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1255:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1255 | LOG(2, LOG_LINE_NORMAL, L"Also not scanning for shells"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1256:41: warning: passing argument 2 of 'MergeStrings' from incompatible pointer type [-Wincompatible-pointer-types] 1256 | MergeStrings(&DontScanFirmware, L"shell", L','); | ^~~~~~~~ | | | short unsigned int * mystrings.h:46:53: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 46 | VOID MergeStrings(IN OUT CHAR16 **First, IN CHAR16 *Second, CHAR16 AddChar); | ~~~~~~~~^~~~~~ scan.c:1258:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1258 | LOG(3, LOG_LINE_NORMAL, L"Merged firmware don't-scan list is '%s'", DontScanFirmware); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1278:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1278 | LOG(1, LOG_LINE_NORMAL, L"Adding EFI loader entry for '%s'", CurrentEntry->BootEntry.Label); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c: In function 'AddToolEntry': scan.c:1320:26: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1320 | TitleStr = PoolPrint(L"Start %s", LoaderTitle); | ^~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c: In function 'ScanForBootloaders': scan.c:1343:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1343 | LOG(1, LOG_LINE_SEPARATOR, L"Scanning for boot loaders"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1345:26: warning: passing argument 1 of 'egDisplayMessage' from incompatible pointer type [-Wincompatible-pointer-types] 1345 | egDisplayMessage(L"Scanning for boot loaders; please wait....", &BGColor, CENTER); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from global.h:56: ../libeg/libeg.h:145:34: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 145 | VOID egDisplayMessage(IN CHAR16 *Text, EG_PIXEL *BGColor, UINTN PositionCode); | ~~~~~~~~^~~~ scan.c:1373:33: warning: passing argument 1 of 'ReadHiddenTags' from incompatible pointer type [-Wincompatible-pointer-types] 1373 | HiddenTags = ReadHiddenTags(L"HiddenTags"); | ^~~~~~~~~~~~~ | | | short unsigned int * menu.h:131:32: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | CHAR16* ReadHiddenTags(CHAR16 *VarName); | ~~~~~~~~^~~~~~~ scan.c:1377:33: warning: passing argument 1 of 'ReadHiddenTags' from incompatible pointer type [-Wincompatible-pointer-types] 1377 | HiddenTags = ReadHiddenTags(L"HiddenLegacy"); | ^~~~~~~~~~~~~~~ | | | short unsigned int * menu.h:131:32: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | CHAR16* ReadHiddenTags(CHAR16 *VarName); | ~~~~~~~~^~~~~~~ scan.c:1422:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1422 | LOG(2, LOG_LINE_NORMAL, L"Assigning boot shortcut keys"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c: In function 'IsValidTool': scan.c:1439:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1439 | LOG(3, LOG_LINE_NORMAL, L"Checking validity of tool '%s' on '%s'", PathName, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1442:40: warning: passing argument 1 of 'ReadHiddenTags' from incompatible pointer type [-Wincompatible-pointer-types] 1442 | DontScanTools = ReadHiddenTags(L"HiddenTools"); | ^~~~~~~~~~~~~~ | | | short unsigned int * menu.h:131:32: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 131 | CHAR16* ReadHiddenTags(CHAR16 *VarName); | ~~~~~~~~^~~~~~~ scan.c:1469:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1469 | LOG(4, LOG_LINE_NORMAL, L"About to free multiple variables in IsValidTool()"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1474:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1474 | LOG(4, LOG_LINE_NORMAL, L"Done checking validity of tool '%s' on '%s'", PathName, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c: In function 'FindTool': scan.c:1489:67: warning: passing argument 2 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 1489 | MergeStrings(&PathName, FileName, MyStriCmp(PathName, L"\\") ? 0 : L'\\'); | ^~~~~ | | | short unsigned int * mystrings.h:43:62: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); scan.c:1492:49: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1492 | FullDescription = PoolPrint(L"%s at %s on %s", Description, PathName, | ^~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1494:45: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1494 | LOG(1, LOG_LINE_NORMAL, L"Adding tag for '%s' on '%s'", FileName, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c: In function 'ScanForTools': scan.c:1518:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1518 | LOG(1, LOG_LINE_SEPARATOR, L"Scanning for tools"); | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, global.h:190:33: warning: passing argument 1 of 'StrDuplicate' from incompatible pointer type [-Wincompatible-pointer-types] 190 | #define MOK_LOCATIONS L"\\,EFI\\tools,EFI\\fedora,EFI\\redhat,EFI\\ubuntu,EFI\\suse,EFI\\opensuse,EFI\\altlinux" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1519:33: note: in expansion of macro 'MOK_LOCATIONS' 1519 | MokLocations = StrDuplicate(MOK_LOCATIONS); | ^~~~~~~~~~~~~ /usr/include/efi/efilib.h:393:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 393 | IN CONST CHAR16 *Src scan.c:1559:47: warning: passing argument 2 of 'EfivarGetRaw' from incompatible pointer type [-Wincompatible-pointer-types] 1559 | if (EfivarGetRaw(&GlobalGuid, L"OsIndicationsSupported", &b, &j) == EFI_SUCCESS) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * lib.h:96:57: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 96 | EFI_STATUS EfivarGetRaw(IN EFI_GUID *vendor, IN CHAR16 *name, OUT CHAR8 **buffer, OUT UINTN *size OPTIONAL); | ~~~~~~~~^~~~ scan.c:1566:49: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1566 | LOG(1, LOG_LINE_NORMAL, L"showtools includes firmware, but EFI lacks support"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1570:45: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1570 | LOG(1, LOG_LINE_NORMAL, L"showtools includes firmware, but OsIndicationsSupported is missing"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:84:33: warning: passing argument 1 of 'FindCommaDelimited' from incompatible pointer type [-Wincompatible-pointer-types] 84 | #define SHELL_NAMES L"\\EFI\\tools\\shell.efi,\\EFI\\tools\\shellx64.efi,\\shell.efi,\\shellx64.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1576:55: note: in expansion of macro 'SHELL_NAMES' 1576 | while ((FileName = FindCommaDelimited(SHELL_NAMES, j++)) != NULL) { | ^~~~~~~~~~~ mystrings.h:51:39: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 51 | CHAR16 *FindCommaDelimited(IN CHAR16 *InString, IN UINTN Index); | ~~~~~~~~^~~~~~~~ scan.c:1578:49: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1578 | LOG(1, LOG_LINE_NORMAL, L"Adding Shell tag for '%s' on '%s'", FileName, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1580:60: warning: passing argument 3 of 'AddToolEntry' from incompatible pointer type [-Wincompatible-pointer-types] 1580 | AddToolEntry(SelfVolume, FileName, L"EFI Shell", | ^~~~~~~~~~~~ | | | short unsigned int * scan.c:1312:91: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1312 | static LOADER_ENTRY * AddToolEntry(REFIT_VOLUME *Volume,IN CHAR16 *LoaderPath, IN CHAR16 *LoaderTitle, | ~~~~~~~~^~~~~~~~~~~ scan.c:1587:40: warning: passing argument 2 of 'ScanFirmwareDefined' from incompatible pointer type [-Wincompatible-pointer-types] 1587 | ScanFirmwareDefined(1, L"Shell", BuiltinIcon(BUILTIN_ICON_TOOL_SHELL)); | ^~~~~~~~ | | | short unsigned int * scan.c:1241:58: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1241 | static VOID ScanFirmwareDefined(IN UINTN Row, IN CHAR16 *MatchThis, IN EG_IMAGE *Icon) { | ~~~~~~~~^~~~~~~~~ scan.c:85:33: warning: passing argument 1 of 'FindCommaDelimited' from incompatible pointer type [-Wincompatible-pointer-types] 85 | #define GPTSYNC_NAMES L"\\EFI\\tools\\gptsync.efi,\\EFI\\tools\\gptsync_x64.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1592:55: note: in expansion of macro 'GPTSYNC_NAMES' 1592 | while ((FileName = FindCommaDelimited(GPTSYNC_NAMES, j++)) != NULL) { | ^~~~~~~~~~~~~ mystrings.h:51:39: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 51 | CHAR16 *FindCommaDelimited(IN CHAR16 *InString, IN UINTN Index); | ~~~~~~~~^~~~~~~~ scan.c:1594:49: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1594 | LOG(1, LOG_LINE_NORMAL, L"Adding Hybrid MBR tool tag for '%s' on '%s'", FileName, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1596:60: warning: passing argument 3 of 'AddToolEntry' from incompatible pointer type [-Wincompatible-pointer-types] 1596 | AddToolEntry(SelfVolume, FileName, L"Hybrid MBR tool", | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1312:91: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1312 | static LOADER_ENTRY * AddToolEntry(REFIT_VOLUME *Volume,IN CHAR16 *LoaderPath, IN CHAR16 *LoaderTitle, | ~~~~~~~~^~~~~~~~~~~ scan.c:86:33: warning: passing argument 1 of 'FindCommaDelimited' from incompatible pointer type [-Wincompatible-pointer-types] 86 | #define GDISK_NAMES L"\\EFI\\tools\\gdisk.efi,\\EFI\\tools\\gdisk_x64.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1607:55: note: in expansion of macro 'GDISK_NAMES' 1607 | while ((FileName = FindCommaDelimited(GDISK_NAMES, j++)) != NULL) { | ^~~~~~~~~~~ mystrings.h:51:39: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 51 | CHAR16 *FindCommaDelimited(IN CHAR16 *InString, IN UINTN Index); | ~~~~~~~~^~~~~~~~ scan.c:1609:49: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1609 | LOG(1, LOG_LINE_NORMAL, L"Adding GPT fdisk tag for '%s' on '%s'", FileName, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1611:60: warning: passing argument 3 of 'AddToolEntry' from incompatible pointer type [-Wincompatible-pointer-types] 1611 | AddToolEntry(SelfVolume, FileName, L"disk partitioning tool", | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1312:91: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1312 | static LOADER_ENTRY * AddToolEntry(REFIT_VOLUME *Volume,IN CHAR16 *LoaderPath, IN CHAR16 *LoaderTitle, | ~~~~~~~~^~~~~~~~~~~ scan.c:87:33: warning: passing argument 1 of 'FindCommaDelimited' from incompatible pointer type [-Wincompatible-pointer-types] 87 | #define NETBOOT_NAMES L"\\EFI\\tools\\ipxe.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1621:55: note: in expansion of macro 'NETBOOT_NAMES' 1621 | while ((FileName = FindCommaDelimited(NETBOOT_NAMES, j++)) != NULL) { | ^~~~~~~~~~~~~ mystrings.h:51:39: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 51 | CHAR16 *FindCommaDelimited(IN CHAR16 *InString, IN UINTN Index); | ~~~~~~~~^~~~~~~~ scan.c:1623:49: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1623 | LOG(1, LOG_LINE_NORMAL, L"Adding Netboot tag for '%s' on '%s'", FileName, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1625:60: warning: passing argument 3 of 'AddToolEntry' from incompatible pointer type [-Wincompatible-pointer-types] 1625 | AddToolEntry(SelfVolume, FileName, L"Netboot", | ^~~~~~~~~~ | | | short unsigned int * scan.c:1312:91: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1312 | static LOADER_ENTRY * AddToolEntry(REFIT_VOLUME *Volume,IN CHAR16 *LoaderPath, IN CHAR16 *LoaderTitle, | ~~~~~~~~^~~~~~~~~~~ scan.c:1639:57: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1639 | Description = PoolPrint(L"Apple Recovery on %s", Volumes[VolumeIndex]->VolName); | ^~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1640:57: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1640 | LOG(1, LOG_LINE_NORMAL, L"Adding Apple Recovery tag for '%s' on '%s'", FileName, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1659:57: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1659 | Description = PoolPrint(L"Microsoft Recovery on %s", Volumes[VolumeIndex]->VolName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, scan.c:1661:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1661 | L"Adding Windows Recovery tag for '%s' on '%s'", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, global.h:170:33: warning: passing argument 2 of 'FindTool' from incompatible pointer type [-Wincompatible-pointer-types] 170 | #define MOK_NAMES L"MokManager.efi,HashTool.efi,HashTool-signed.efi,KeyTool.efi,KeyTool-signed.efi,mmx64.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1676:40: note: in expansion of macro 'MOK_NAMES' 1676 | FindTool(MokLocations, MOK_NAMES, L"MOK utility", BUILTIN_ICON_TOOL_MOK_TOOL); | ^~~~~~~~~ scan.c:1481:49: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1481 | static VOID FindTool(CHAR16 *Locations, CHAR16 *Names, CHAR16 *Description, UINTN Icon) { | ~~~~~~~~^~~~~ scan.c:1676:51: warning: passing argument 3 of 'FindTool' from incompatible pointer type [-Wincompatible-pointer-types] 1676 | FindTool(MokLocations, MOK_NAMES, L"MOK utility", BUILTIN_ICON_TOOL_MOK_TOOL); | ^~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1481:64: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1481 | static VOID FindTool(CHAR16 *Locations, CHAR16 *Names, CHAR16 *Description, UINTN Icon) { | ~~~~~~~~^~~~~~~~~~~ global.h:180:33: warning: passing argument 2 of 'FindTool' from incompatible pointer type [-Wincompatible-pointer-types] 180 | #define FWUPDATE_NAMES L"fwupx64.efi" | ^~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1680:40: note: in expansion of macro 'FWUPDATE_NAMES' 1680 | FindTool(MokLocations, FWUPDATE_NAMES, L"firmware update utility", BUILTIN_ICON_TOOL_FWUPDATE); | ^~~~~~~~~~~~~~ scan.c:1481:49: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1481 | static VOID FindTool(CHAR16 *Locations, CHAR16 *Names, CHAR16 *Description, UINTN Icon) { | ~~~~~~~~^~~~~ scan.c:1680:56: warning: passing argument 3 of 'FindTool' from incompatible pointer type [-Wincompatible-pointer-types] 1680 | FindTool(MokLocations, FWUPDATE_NAMES, L"firmware update utility", BUILTIN_ICON_TOOL_FWUPDATE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1481:64: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1481 | static VOID FindTool(CHAR16 *Locations, CHAR16 *Names, CHAR16 *Description, UINTN Icon) { | ~~~~~~~~^~~~~~~~~~~ global.h:192:33: warning: passing argument 1 of 'FindTool' from incompatible pointer type [-Wincompatible-pointer-types] 192 | #define MEMTEST_LOCATIONS L"EFI\\tools,EFI\\tools\\memtest86,EFI\\tools\\memtest,EFI\\memtest86,EFI\\memtest" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1704:26: note: in expansion of macro 'MEMTEST_LOCATIONS' 1704 | FindTool(MEMTEST_LOCATIONS, MEMTEST_NAMES, L"Memory test utility", BUILTIN_ICON_TOOL_MEMTEST); | ^~~~~~~~~~~~~~~~~ scan.c:1481:30: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1481 | static VOID FindTool(CHAR16 *Locations, CHAR16 *Names, CHAR16 *Description, UINTN Icon) { | ~~~~~~~~^~~~~~~~~ scan.c:88:33: warning: passing argument 2 of 'FindTool' from incompatible pointer type [-Wincompatible-pointer-types] 88 | #define MEMTEST_NAMES L"memtest86.efi,memtest86_x64.efi,memtest86x64.efi,bootx64.efi" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1704:45: note: in expansion of macro 'MEMTEST_NAMES' 1704 | FindTool(MEMTEST_LOCATIONS, MEMTEST_NAMES, L"Memory test utility", BUILTIN_ICON_TOOL_MEMTEST); | ^~~~~~~~~~~~~ scan.c:1481:49: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1481 | static VOID FindTool(CHAR16 *Locations, CHAR16 *Names, CHAR16 *Description, UINTN Icon) { | ~~~~~~~~^~~~~ scan.c:1704:60: warning: passing argument 3 of 'FindTool' from incompatible pointer type [-Wincompatible-pointer-types] 1704 | FindTool(MEMTEST_LOCATIONS, MEMTEST_NAMES, L"Memory test utility", BUILTIN_ICON_TOOL_MEMTEST); | ^~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * scan.c:1481:64: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 1481 | static VOID FindTool(CHAR16 *Locations, CHAR16 *Names, CHAR16 *Description, UINTN Icon) { | ~~~~~~~~^~~~~~~~~~~ scan.c:1709:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 1709 | LOG(2, LOG_LINE_NORMAL, L"Done scanning for tools"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -I. -I./../include -I./../libeg -I./../mok \ -D__MAKEWITH_GNUEFI -c screen.c -o screen.o In file included from screen.c:65: screen.c: In function 'InitScreen': screen.c:108:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 108 | LOG(1, LOG_LINE_NORMAL, L"Entering InitScreen()"); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ In file included from global.h:50, from screen.c:58: /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:113:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 113 | LOG(2, LOG_LINE_NORMAL, L"Have graphics mode; setting screen size"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:117:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 117 | LOG(2, LOG_LINE_NORMAL, L"No graphics mode detected; setting text mode"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:140:25: warning: passing argument 1 of 'DrawScreenHeader' from incompatible pointer type [-Wincompatible-pointer-types] 140 | DrawScreenHeader(L"Initializing..."); | ^~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from screen.c:59: screen.h:92:34: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 92 | VOID DrawScreenHeader(IN CHAR16 *Title); | ~~~~~~~~^~~~~ screen.c: In function 'SetupScreen': screen.c:148:29: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 148 | LOG(1, LOG_LINE_NORMAL, L"Setting screen resolution and mode"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:159:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 159 | LOG(2, LOG_LINE_NORMAL, L"Recording current resolution as %dx%d", UGAWidth, UGAHeight); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:168:35: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 168 | LOG(2, LOG_LINE_NORMAL, L"After setting text mode, recording new current resolution as %dx%d", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:173:36: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 173 | LOG(2, LOG_LINE_NORMAL, L"Adjusting requested screen size based on actual screen size"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:181:32: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 181 | LOG(2, LOG_LINE_NORMAL, L"Setting screen size to %dx%d", GlobalConfig.RequestedScreenWidth, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:188:33: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 188 | LOG(2, LOG_LINE_NORMAL, L"Setting text-only mode"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c:196:37: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 196 | LOG(2, LOG_LINE_NORMAL, L"Doubling icon sizes for HiDPI display"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * log.h:40:30: note: in definition of macro 'LOG' 40 | gLogTemp = PoolPrint(__VA_ARGS__); \ | ^~~~~~~~~~~ /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c: In function 'DrawScreenHeader': screen.c:295:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 295 | Print(L"rEFInd - %s", Title); | ^~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, screen.c: In function 'PrintUglyText': screen.c:332:44: warning: passing argument 1 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 332 | if (AllowGraphicsMode && MyStriCmp(L"Apple", ST->FirmwareVendor) && egIsGraphicsModeEnabled()) { | ^~~~~~~~ | | | short unsigned int * In file included from screen.c:64: mystrings.h:43:36: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 43 | BOOLEAN MyStriCmp(IN CONST CHAR16 *String1, IN CONST CHAR16 *String2); screen.c:337:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 337 | Print(L"\n"); | ^~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, screen.c: In function 'PauseForKey': screen.c:346:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 346 | Print(L"\n"); | ^~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, screen.c:347:19: warning: passing argument 1 of 'PrintUglyText' from incompatible pointer type [-Wincompatible-pointer-types] 347 | PrintUglyText(L"* Hit any key to continue *", BOTTOM); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * screen.c:328:31: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 328 | VOID PrintUglyText(IN CHAR16 *Text, IN UINTN PositionCode) { | ~~~~~~~~^~~~ screen.c: In function 'CheckFatalError': screen.c:387:22: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 387 | Temp = PoolPrint(L"Fatal Error: %s %s", ErrorName, where); | ^~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, screen.c: In function 'CheckError': screen.c:410:22: warning: passing argument 1 of 'PoolPrint' from incompatible pointer type [-Wincompatible-pointer-types] 410 | Temp = PoolPrint(L"Error: %s %s", ErrorName, where); | ^~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:564:26: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 564 | IN CONST CHAR16 *fmt, /usr/bin/ld -L./../libeg/ -L./../mok/ -L./../EfiLib/ -L./../gzip -T /usr/lib/elf_x86_64_efi.lds -shared -Bsymbolic -nostdlib -L/usr/lib -L/usr/lib /usr/lib/crt0-efi-x86_64.o -znocombreloc -zdefs apple.o config.o crc32.o driver_support.o gpt.o icns.o install.o launch_efi.o launch_legacy.o lib.o line_edit.o linux.o log.o main.o menu.o mystrings.o pointer.o scan.o screen.o \ -o refind_x64.so -leg -lmok -lEfiLib -lgzip -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/13.1.1/libgcc.a /usr/bin/objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel \ -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 refind_x64.so refind_x64.efi /usr/bin/objcopy --set-section-alignment '.sbat=512' --add-section \ .sbat=./../refind-sbat.csv --adjust-section-vma \ .sbat+10000000 refind_x64.efi chmod a-x refind_x64.efi make[1]: Leaving directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/refind' make MAKEWITH=GNUEFI -C gptsync gnuefi make[1]: Entering directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/gptsync' make -f Make.gnuefi make[2]: Entering directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/gptsync' /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip \ -D__MAKEWITH_GNUEFI -c gptsync.c -o gptsync.o gptsync.c: In function 'check_mbr': gptsync.c:58:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 58 | Print(L"Status: MBR partition table is invalid, partitions overlap.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from gptsync.h:60, from gptsync.c:38: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c:65:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 65 | Print(L"Status: Extended partition found in MBR table, will not touch this disk.\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c:79:22: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 79 | Print(L"Status: Found MBR partition with no matching GPT partition. Re-syncing could\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c:80:22: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 80 | Print(L"destroy data; will not touch this disk.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c: In function 'write_mbr': gptsync.c:99:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 99 | Print(L"\nWriting new MBR...\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c:144:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 144 | Print(L"Warning: Partition %d starts beyond 2 TiB limit\n", i+1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c:151:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 151 | Print(L"Warning: Partition %d extends beyond 2 TiB limit\n", i+1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c:177:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 177 | Print(L"MBR updated successfully!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c: In function 'check_gpt': gptsync.c:191:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 191 | Print(L"Status: No GPT partition table, no need to sync.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c:199:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 199 | Print(L"Status: GPT partition table is invalid.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c:205:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 205 | Print(L"Status: GPT partition table is invalid, partitions overlap.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c:212:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 212 | Print(L"Status: GPT partition of type '%s' found, will not touch this disk.\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c: In function 'should_rewrite': gptsync.c:412:13: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 412 | Print(L"Tables are synchronized, no need to sync.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c:419:13: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 419 | Print(L"Found no partitions that could be hybridized, but an existing hybrid MBR exists.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c:420:13: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 420 | Print(L"If you proceed, a fresh protective MBR will be created. Do you want to create\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.h:69:16: warning: passing argument 1 of 'input_boolean' from incompatible pointer type [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ | | | short unsigned int * gptsync.c:421:31: note: in expansion of macro 'STR' 421 | invalid = input_boolean(STR("this new protective MBR, erasing the hybrid MBR? [y/N] "), &retval); | ^~~ gptsync.h:196:28: note: expected 'CHARN *' {aka 'int *'} but argument is of type 'short unsigned int *' 196 | UINTN input_boolean(CHARN *prompt, BOOLEAN *bool_out); | ~~~~~~~^~~~~~ gptsync.c:429:13: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 429 | Print(L"Existing hybrid MBR detected, but it's not identical to what this program\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c:430:13: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 430 | Print(L"would generate. Do you want to see the hybrid MBR that this program would\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.h:69:16: warning: passing argument 1 of 'input_boolean' from incompatible pointer type [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ | | | short unsigned int * gptsync.c:431:31: note: in expansion of macro 'STR' 431 | invalid = input_boolean(STR("generate? [y/N] "), &retval); | ^~~ gptsync.h:196:28: note: expected 'CHARN *' {aka 'int *'} but argument is of type 'short unsigned int *' 196 | UINTN input_boolean(CHARN *prompt, BOOLEAN *bool_out); | ~~~~~~~^~~~~~ gptsync.c: In function 'analyze': gptsync.c:449:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 449 | Print(L"Status: No GPT partitions defined, nothing to sync.\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c:458:22: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 458 | Print(L"Warning: Error %d when detecting filesystem type!\n", status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c:473:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 473 | Print(L"\nProposed new MBR partition table:\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c:474:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 474 | Print(L" # A Start LBA End LBA Type\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c:476:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 476 | Print(L" %d %s %12lld %12lld %02x %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c: In function 'gptsync': gptsync.c:498:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 498 | Print(L"gptsync version %s\ncopyright (c) 2006-2007 Christoph Pfisterer & 2013 Roderick W. Smith\n", REFIND_VERSION); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.c:507:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 507 | Print(L"\n"); | ^~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.h:69:16: warning: passing argument 1 of 'input_boolean' from incompatible pointer type [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ | | | short unsigned int * gptsync.c:521:28: note: in expansion of macro 'STR' 521 | status = input_boolean(STR("\nMay I update the MBR as printed above? [y/N] "), &proceed); | ^~~ gptsync.h:196:28: note: expected 'CHARN *' {aka 'int *'} but argument is of type 'short unsigned int *' 196 | UINTN input_boolean(CHARN *prompt, BOOLEAN *bool_out); | ~~~~~~~^~~~~~ /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip \ -D__MAKEWITH_GNUEFI -c lib.c -o lib.o In file included from lib.c:38: gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:55:13: note: in expansion of macro 'STR' 55 | { 0x01, STR("FAT12 (CHS)") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[0].name') 69 | #define STR(x) L##x | ^ lib.c:55:13: note: in expansion of macro 'STR' 55 | { 0x01, STR("FAT12 (CHS)") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:56:13: note: in expansion of macro 'STR' 56 | { 0x04, STR("FAT16 <32M (CHS)") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[1].name') 69 | #define STR(x) L##x | ^ lib.c:56:13: note: in expansion of macro 'STR' 56 | { 0x04, STR("FAT16 <32M (CHS)") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:57:13: note: in expansion of macro 'STR' 57 | { 0x05, STR("Extended (CHS)") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[2].name') 69 | #define STR(x) L##x | ^ lib.c:57:13: note: in expansion of macro 'STR' 57 | { 0x05, STR("Extended (CHS)") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:58:13: note: in expansion of macro 'STR' 58 | { 0x06, STR("FAT16 (CHS)") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[3].name') 69 | #define STR(x) L##x | ^ lib.c:58:13: note: in expansion of macro 'STR' 58 | { 0x06, STR("FAT16 (CHS)") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:59:13: note: in expansion of macro 'STR' 59 | { 0x07, STR("NTFS/HPFS") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[4].name') 69 | #define STR(x) L##x | ^ lib.c:59:13: note: in expansion of macro 'STR' 59 | { 0x07, STR("NTFS/HPFS") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:60:13: note: in expansion of macro 'STR' 60 | { 0x0b, STR("FAT32 (CHS)") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[5].name') 69 | #define STR(x) L##x | ^ lib.c:60:13: note: in expansion of macro 'STR' 60 | { 0x0b, STR("FAT32 (CHS)") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:61:13: note: in expansion of macro 'STR' 61 | { 0x0c, STR("FAT32 (LBA)") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[6].name') 69 | #define STR(x) L##x | ^ lib.c:61:13: note: in expansion of macro 'STR' 61 | { 0x0c, STR("FAT32 (LBA)") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:62:13: note: in expansion of macro 'STR' 62 | { 0x0e, STR("FAT16 (LBA)") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[7].name') 69 | #define STR(x) L##x | ^ lib.c:62:13: note: in expansion of macro 'STR' 62 | { 0x0e, STR("FAT16 (LBA)") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:63:13: note: in expansion of macro 'STR' 63 | { 0x0f, STR("Extended (LBA)") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[8].name') 69 | #define STR(x) L##x | ^ lib.c:63:13: note: in expansion of macro 'STR' 63 | { 0x0f, STR("Extended (LBA)") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:64:13: note: in expansion of macro 'STR' 64 | { 0x11, STR("Hidden FAT12 (CHS)") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[9].name') 69 | #define STR(x) L##x | ^ lib.c:64:13: note: in expansion of macro 'STR' 64 | { 0x11, STR("Hidden FAT12 (CHS)") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:65:13: note: in expansion of macro 'STR' 65 | { 0x14, STR("Hidden FAT16 <32M (CHS)") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[10].name') 69 | #define STR(x) L##x | ^ lib.c:65:13: note: in expansion of macro 'STR' 65 | { 0x14, STR("Hidden FAT16 <32M (CHS)") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:66:13: note: in expansion of macro 'STR' 66 | { 0x16, STR("Hidden FAT16 (CHS)") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[11].name') 69 | #define STR(x) L##x | ^ lib.c:66:13: note: in expansion of macro 'STR' 66 | { 0x16, STR("Hidden FAT16 (CHS)") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:67:13: note: in expansion of macro 'STR' 67 | { 0x17, STR("Hidden NTFS/HPFS") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[12].name') 69 | #define STR(x) L##x | ^ lib.c:67:13: note: in expansion of macro 'STR' 67 | { 0x17, STR("Hidden NTFS/HPFS") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:68:13: note: in expansion of macro 'STR' 68 | { 0x1b, STR("Hidden FAT32 (CHS)") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[13].name') 69 | #define STR(x) L##x | ^ lib.c:68:13: note: in expansion of macro 'STR' 68 | { 0x1b, STR("Hidden FAT32 (CHS)") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:69:13: note: in expansion of macro 'STR' 69 | { 0x1c, STR("Hidden FAT32 (LBA)") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[14].name') 69 | #define STR(x) L##x | ^ lib.c:69:13: note: in expansion of macro 'STR' 69 | { 0x1c, STR("Hidden FAT32 (LBA)") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:70:13: note: in expansion of macro 'STR' 70 | { 0x1e, STR("Hidden FAT16 (LBA)") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[15].name') 69 | #define STR(x) L##x | ^ lib.c:70:13: note: in expansion of macro 'STR' 70 | { 0x1e, STR("Hidden FAT16 (LBA)") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:71:13: note: in expansion of macro 'STR' 71 | { 0x82, STR("Linux swap / Solaris") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[16].name') 69 | #define STR(x) L##x | ^ lib.c:71:13: note: in expansion of macro 'STR' 71 | { 0x82, STR("Linux swap / Solaris") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:72:13: note: in expansion of macro 'STR' 72 | { 0x83, STR("Linux") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[17].name') 69 | #define STR(x) L##x | ^ lib.c:72:13: note: in expansion of macro 'STR' 72 | { 0x83, STR("Linux") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:73:13: note: in expansion of macro 'STR' 73 | { 0x85, STR("Linux Extended") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[18].name') 69 | #define STR(x) L##x | ^ lib.c:73:13: note: in expansion of macro 'STR' 73 | { 0x85, STR("Linux Extended") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:74:13: note: in expansion of macro 'STR' 74 | { 0x86, STR("NT FAT volume set") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[19].name') 69 | #define STR(x) L##x | ^ lib.c:74:13: note: in expansion of macro 'STR' 74 | { 0x86, STR("NT FAT volume set") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:75:13: note: in expansion of macro 'STR' 75 | { 0x87, STR("NTFS volume set") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[20].name') 69 | #define STR(x) L##x | ^ lib.c:75:13: note: in expansion of macro 'STR' 75 | { 0x87, STR("NTFS volume set") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:76:13: note: in expansion of macro 'STR' 76 | { 0x8e, STR("Linux LVM") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[21].name') 69 | #define STR(x) L##x | ^ lib.c:76:13: note: in expansion of macro 'STR' 76 | { 0x8e, STR("Linux LVM") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:77:13: note: in expansion of macro 'STR' 77 | { 0xa5, STR("FreeBSD") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[22].name') 69 | #define STR(x) L##x | ^ lib.c:77:13: note: in expansion of macro 'STR' 77 | { 0xa5, STR("FreeBSD") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:78:13: note: in expansion of macro 'STR' 78 | { 0xa6, STR("OpenBSD") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[23].name') 69 | #define STR(x) L##x | ^ lib.c:78:13: note: in expansion of macro 'STR' 78 | { 0xa6, STR("OpenBSD") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:79:13: note: in expansion of macro 'STR' 79 | { 0xa7, STR("NeXTSTEP") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[24].name') 69 | #define STR(x) L##x | ^ lib.c:79:13: note: in expansion of macro 'STR' 79 | { 0xa7, STR("NeXTSTEP") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:80:13: note: in expansion of macro 'STR' 80 | { 0xa8, STR("MacOS UFS") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[25].name') 69 | #define STR(x) L##x | ^ lib.c:80:13: note: in expansion of macro 'STR' 80 | { 0xa8, STR("MacOS UFS") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:81:13: note: in expansion of macro 'STR' 81 | { 0xa9, STR("NetBSD") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[26].name') 69 | #define STR(x) L##x | ^ lib.c:81:13: note: in expansion of macro 'STR' 81 | { 0xa9, STR("NetBSD") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:82:13: note: in expansion of macro 'STR' 82 | { 0xab, STR("MacOS Boot") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[27].name') 69 | #define STR(x) L##x | ^ lib.c:82:13: note: in expansion of macro 'STR' 82 | { 0xab, STR("MacOS Boot") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:83:13: note: in expansion of macro 'STR' 83 | { 0xac, STR("Apple RAID") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[28].name') 69 | #define STR(x) L##x | ^ lib.c:83:13: note: in expansion of macro 'STR' 83 | { 0xac, STR("Apple RAID") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:84:13: note: in expansion of macro 'STR' 84 | { 0xaf, STR("MacOS HFS+") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[29].name') 69 | #define STR(x) L##x | ^ lib.c:84:13: note: in expansion of macro 'STR' 84 | { 0xaf, STR("MacOS HFS+") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:85:13: note: in expansion of macro 'STR' 85 | { 0xbe, STR("Solaris Boot") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[30].name') 69 | #define STR(x) L##x | ^ lib.c:85:13: note: in expansion of macro 'STR' 85 | { 0xbe, STR("Solaris Boot") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:86:13: note: in expansion of macro 'STR' 86 | { 0xbf, STR("Solaris") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[31].name') 69 | #define STR(x) L##x | ^ lib.c:86:13: note: in expansion of macro 'STR' 86 | { 0xbf, STR("Solaris") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:87:13: note: in expansion of macro 'STR' 87 | { 0xeb, STR("BeOS") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[32].name') 69 | #define STR(x) L##x | ^ lib.c:87:13: note: in expansion of macro 'STR' 87 | { 0xeb, STR("BeOS") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:88:13: note: in expansion of macro 'STR' 88 | { 0xee, STR("EFI Protective") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[33].name') 69 | #define STR(x) L##x | ^ lib.c:88:13: note: in expansion of macro 'STR' 88 | { 0xee, STR("EFI Protective") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:89:13: note: in expansion of macro 'STR' 89 | { 0xef, STR("EFI System (FAT)") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[34].name') 69 | #define STR(x) L##x | ^ lib.c:89:13: note: in expansion of macro 'STR' 89 | { 0xef, STR("EFI System (FAT)") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:90:13: note: in expansion of macro 'STR' 90 | { 0xfd, STR("Linux RAID") }, | ^~~ gptsync.h:69:16: note: (near initialization for 'mbr_types[35].name') 69 | #define STR(x) L##x | ^ lib.c:90:13: note: in expansion of macro 'STR' 90 | { 0xfd, STR("Linux RAID") }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:96:81: note: in expansion of macro 'STR' 96 | { "\x32\x97\x01\xF4\x6E\x06\x12\x4E\x82\x73\x34\x6C\x56\x41\x49\x4F", 0x00, STR("Sony System (FAT)"), GPT_KIND_FATAL }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[0].name') 69 | #define STR(x) L##x | ^ lib.c:96:81: note: in expansion of macro 'STR' 96 | { "\x32\x97\x01\xF4\x6E\x06\x12\x4E\x82\x73\x34\x6C\x56\x41\x49\x4F", 0x00, STR("Sony System (FAT)"), GPT_KIND_FATAL }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:98:81: note: in expansion of macro 'STR' 98 | { "\x28\x73\x2A\xC1\x1F\xF8\xD2\x11\xBA\x4B\x00\xA0\xC9\x3E\xC9\x3B", 0xef, STR("EFI System (FAT)"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[1].name') 69 | #define STR(x) L##x | ^ lib.c:98:81: note: in expansion of macro 'STR' 98 | { "\x28\x73\x2A\xC1\x1F\xF8\xD2\x11\xBA\x4B\x00\xA0\xC9\x3E\xC9\x3B", 0xef, STR("EFI System (FAT)"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:99:81: note: in expansion of macro 'STR' 99 | { "\x41\xEE\x4D\x02\xE7\x33\xD3\x11\x9D\x69\x00\x08\xC7\x81\xF3\x9F", 0x00, STR("MBR partition scheme"), GPT_KIND_FATAL }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[2].name') 69 | #define STR(x) L##x | ^ lib.c:99:81: note: in expansion of macro 'STR' 99 | { "\x41\xEE\x4D\x02\xE7\x33\xD3\x11\x9D\x69\x00\x08\xC7\x81\xF3\x9F", 0x00, STR("MBR partition scheme"), GPT_KIND_FATAL }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:101:81: note: in expansion of macro 'STR' 101 | { "\x16\xE3\xC9\xE3\x5C\x0B\xB8\x4D\x81\x7D\xF9\x2D\xF0\x02\x15\xAE", 0x00, STR("MS Reserved"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[3].name') 69 | #define STR(x) L##x | ^ lib.c:101:81: note: in expansion of macro 'STR' 101 | { "\x16\xE3\xC9\xE3\x5C\x0B\xB8\x4D\x81\x7D\xF9\x2D\xF0\x02\x15\xAE", 0x00, STR("MS Reserved"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:102:81: note: in expansion of macro 'STR' 102 | { "\xA2\xA0\xD0\xEB\xE5\xB9\x33\x44\x87\xC0\x68\xB6\xB7\x26\x99\xC7", 0x00, STR("Basic Data"), GPT_KIND_BASIC_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[4].name') 69 | #define STR(x) L##x | ^ lib.c:102:81: note: in expansion of macro 'STR' 102 | { "\xA2\xA0\xD0\xEB\xE5\xB9\x33\x44\x87\xC0\x68\xB6\xB7\x26\x99\xC7", 0x00, STR("Basic Data"), GPT_KIND_BASIC_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:104:81: note: in expansion of macro 'STR' 104 | { "\xAA\xC8\x08\x58\x8F\x7E\xE0\x42\x85\xD2\xE1\xE9\x04\x34\xCF\xB3", 0x00, STR("MS LDM Metadata"), GPT_KIND_FATAL }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[5].name') 69 | #define STR(x) L##x | ^ lib.c:104:81: note: in expansion of macro 'STR' 104 | { "\xAA\xC8\x08\x58\x8F\x7E\xE0\x42\x85\xD2\xE1\xE9\x04\x34\xCF\xB3", 0x00, STR("MS LDM Metadata"), GPT_KIND_FATAL }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:105:81: note: in expansion of macro 'STR' 105 | { "\xA0\x60\x9B\xAF\x31\x14\x62\x4F\xBC\x68\x33\x11\x71\x4A\x69\xAD", 0x00, STR("MS LDM Data"), GPT_KIND_FATAL }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[6].name') 69 | #define STR(x) L##x | ^ lib.c:105:81: note: in expansion of macro 'STR' 105 | { "\xA0\x60\x9B\xAF\x31\x14\x62\x4F\xBC\x68\x33\x11\x71\x4A\x69\xAD", 0x00, STR("MS LDM Data"), GPT_KIND_FATAL }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:106:81: note: in expansion of macro 'STR' 106 | { "\x1E\x4C\x89\x75\xEB\x3A\xD3\x11\xB7\xC1\x7B\x03\xA0\x00\x00\x00", 0x00, STR("HP/UX Data"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[7].name') 69 | #define STR(x) L##x | ^ lib.c:106:81: note: in expansion of macro 'STR' 106 | { "\x1E\x4C\x89\x75\xEB\x3A\xD3\x11\xB7\xC1\x7B\x03\xA0\x00\x00\x00", 0x00, STR("HP/UX Data"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:107:81: note: in expansion of macro 'STR' 107 | { "\x28\xE7\xA1\xE2\xE3\x32\xD6\x11\xA6\x82\x7B\x03\xA0\x00\x00\x00", 0x00, STR("HP/UX Service"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[8].name') 69 | #define STR(x) L##x | ^ lib.c:107:81: note: in expansion of macro 'STR' 107 | { "\x28\xE7\xA1\xE2\xE3\x32\xD6\x11\xA6\x82\x7B\x03\xA0\x00\x00\x00", 0x00, STR("HP/UX Service"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:109:81: note: in expansion of macro 'STR' 109 | { "\x0F\x88\x9D\xA1\xFC\x05\x3B\x4D\xA0\x06\x74\x3F\x0F\x84\x91\x1E", 0xfd, STR("Linux RAID"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[9].name') 69 | #define STR(x) L##x | ^ lib.c:109:81: note: in expansion of macro 'STR' 109 | { "\x0F\x88\x9D\xA1\xFC\x05\x3B\x4D\xA0\x06\x74\x3F\x0F\x84\x91\x1E", 0xfd, STR("Linux RAID"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:110:81: note: in expansion of macro 'STR' 110 | { "\x6D\xFD\x57\x06\xAB\xA4\xC4\x43\x84\xE5\x09\x33\xC8\x4B\x4F\x4F", 0x82, STR("Linux Swap"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[10].name') 69 | #define STR(x) L##x | ^ lib.c:110:81: note: in expansion of macro 'STR' 110 | { "\x6D\xFD\x57\x06\xAB\xA4\xC4\x43\x84\xE5\x09\x33\xC8\x4B\x4F\x4F", 0x82, STR("Linux Swap"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:111:81: note: in expansion of macro 'STR' 111 | { "\x79\xD3\xD6\xE6\x07\xF5\xC2\x44\xA2\x3C\x23\x8F\x2A\x3D\xF9\x28", 0x8e, STR("Linux LVM"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[11].name') 69 | #define STR(x) L##x | ^ lib.c:111:81: note: in expansion of macro 'STR' 111 | { "\x79\xD3\xD6\xE6\x07\xF5\xC2\x44\xA2\x3C\x23\x8F\x2A\x3D\xF9\x28", 0x8e, STR("Linux LVM"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:112:81: note: in expansion of macro 'STR' 112 | { "\xAF\x3D\xC6\x0F\x83\x84\x72\x47\x8E\x79\x3D\x69\xD8\x47\x7D\xE4", 0x83, STR("Linux Filesystem"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[12].name') 69 | #define STR(x) L##x | ^ lib.c:112:81: note: in expansion of macro 'STR' 112 | { "\xAF\x3D\xC6\x0F\x83\x84\x72\x47\x8E\x79\x3D\x69\xD8\x47\x7D\xE4", 0x83, STR("Linux Filesystem"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:114:81: note: in expansion of macro 'STR' 114 | { "\x39\x33\xA6\x8D\x07\x00\xC0\x60\xC4\x36\x08\x3A\xC8\x23\x09\x08", 0x00, STR("Linux Reserved"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[13].name') 69 | #define STR(x) L##x | ^ lib.c:114:81: note: in expansion of macro 'STR' 114 | { "\x39\x33\xA6\x8D\x07\x00\xC0\x60\xC4\x36\x08\x3A\xC8\x23\x09\x08", 0x00, STR("Linux Reserved"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:116:81: note: in expansion of macro 'STR' 116 | { "\x48\x61\x68\x21\x49\x64\x6F\x6E\x74\x4E\x65\x65\x64\x45\x46\x49", 0x00, STR("GRUB2 BIOS Boot"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[14].name') 69 | #define STR(x) L##x | ^ lib.c:116:81: note: in expansion of macro 'STR' 116 | { "\x48\x61\x68\x21\x49\x64\x6F\x6E\x74\x4E\x65\x65\x64\x45\x46\x49", 0x00, STR("GRUB2 BIOS Boot"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:118:81: note: in expansion of macro 'STR' 118 | { "\xB4\x7C\x6E\x51\xCF\x6E\xD6\x11\x8F\xF8\x00\x02\x2D\x09\x71\x2B", 0xa5, STR("FreeBSD Data"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[15].name') 69 | #define STR(x) L##x | ^ lib.c:118:81: note: in expansion of macro 'STR' 118 | { "\xB4\x7C\x6E\x51\xCF\x6E\xD6\x11\x8F\xF8\x00\x02\x2D\x09\x71\x2B", 0xa5, STR("FreeBSD Data"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:119:81: note: in expansion of macro 'STR' 119 | { "\xB5\x7C\x6E\x51\xCF\x6E\xD6\x11\x8F\xF8\x00\x02\x2D\x09\x71\x2B", 0x00, STR("FreeBSD Swap"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[16].name') 69 | #define STR(x) L##x | ^ lib.c:119:81: note: in expansion of macro 'STR' 119 | { "\xB5\x7C\x6E\x51\xCF\x6E\xD6\x11\x8F\xF8\x00\x02\x2D\x09\x71\x2B", 0x00, STR("FreeBSD Swap"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:120:81: note: in expansion of macro 'STR' 120 | { "\xB6\x7C\x6E\x51\xCF\x6E\xD6\x11\x8F\xF8\x00\x02\x2D\x09\x71\x2B", 0xa5, STR("FreeBSD UFS"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[17].name') 69 | #define STR(x) L##x | ^ lib.c:120:81: note: in expansion of macro 'STR' 120 | { "\xB6\x7C\x6E\x51\xCF\x6E\xD6\x11\x8F\xF8\x00\x02\x2D\x09\x71\x2B", 0xa5, STR("FreeBSD UFS"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:121:81: note: in expansion of macro 'STR' 121 | { "\xB8\x7C\x6E\x51\xCF\x6E\xD6\x11\x8F\xF8\x00\x02\x2D\x09\x71\x2B", 0x00, STR("FreeBSD Vinum"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[18].name') 69 | #define STR(x) L##x | ^ lib.c:121:81: note: in expansion of macro 'STR' 121 | { "\xB8\x7C\x6E\x51\xCF\x6E\xD6\x11\x8F\xF8\x00\x02\x2D\x09\x71\x2B", 0x00, STR("FreeBSD Vinum"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:122:81: note: in expansion of macro 'STR' 122 | { "\xBA\x7C\x6E\x51\xCF\x6E\xD6\x11\x8F\xF8\x00\x02\x2D\x09\x71\x2B", 0xa5, STR("FreeBSD ZFS"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[19].name') 69 | #define STR(x) L##x | ^ lib.c:122:81: note: in expansion of macro 'STR' 122 | { "\xBA\x7C\x6E\x51\xCF\x6E\xD6\x11\x8F\xF8\x00\x02\x2D\x09\x71\x2B", 0xa5, STR("FreeBSD ZFS"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:123:81: note: in expansion of macro 'STR' 123 | { "\x9D\x6B\xBD\x83\x41\x7F\xDC\x11\xBE\x0B\x00\x15\x60\xB8\x4F\x0F", 0xa5, STR("FreeBSD Boot"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[20].name') 69 | #define STR(x) L##x | ^ lib.c:123:81: note: in expansion of macro 'STR' 123 | { "\x9D\x6B\xBD\x83\x41\x7F\xDC\x11\xBE\x0B\x00\x15\x60\xB8\x4F\x0F", 0xa5, STR("FreeBSD Boot"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:125:81: note: in expansion of macro 'STR' 125 | { "\x32\x8D\xF4\x49\x0E\xB1\xDC\x11\xB9\x9B\x00\x19\xD1\x87\x96\x48", 0x00, STR("NetBSD Swap"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[21].name') 69 | #define STR(x) L##x | ^ lib.c:125:81: note: in expansion of macro 'STR' 125 | { "\x32\x8D\xF4\x49\x0E\xB1\xDC\x11\xB9\x9B\x00\x19\xD1\x87\x96\x48", 0x00, STR("NetBSD Swap"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:126:81: note: in expansion of macro 'STR' 126 | { "\x5A\x8D\xF4\x49\x0E\xB1\xDC\x11\xB9\x9B\x00\x19\xD1\x87\x96\x48", 0xa9, STR("NetBSD FFS"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[22].name') 69 | #define STR(x) L##x | ^ lib.c:126:81: note: in expansion of macro 'STR' 126 | { "\x5A\x8D\xF4\x49\x0E\xB1\xDC\x11\xB9\x9B\x00\x19\xD1\x87\x96\x48", 0xa9, STR("NetBSD FFS"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:127:81: note: in expansion of macro 'STR' 127 | { "\x82\x8D\xF4\x49\x0E\xB1\xDC\x11\xB9\x9B\x00\x19\xD1\x87\x96\x48", 0xa9, STR("NetBSD LFS"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[23].name') 69 | #define STR(x) L##x | ^ lib.c:127:81: note: in expansion of macro 'STR' 127 | { "\x82\x8D\xF4\x49\x0E\xB1\xDC\x11\xB9\x9B\x00\x19\xD1\x87\x96\x48", 0xa9, STR("NetBSD LFS"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:128:81: note: in expansion of macro 'STR' 128 | { "\xAA\x8D\xF4\x49\x0E\xB1\xDC\x11\xB9\x9B\x00\x19\xD1\x87\x96\x48", 0xa9, STR("NetBSD RAID"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[24].name') 69 | #define STR(x) L##x | ^ lib.c:128:81: note: in expansion of macro 'STR' 128 | { "\xAA\x8D\xF4\x49\x0E\xB1\xDC\x11\xB9\x9B\x00\x19\xD1\x87\x96\x48", 0xa9, STR("NetBSD RAID"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:129:81: note: in expansion of macro 'STR' 129 | { "\xC4\x19\xB5\x2D\x0E\xB1\xDC\x11\xB9\x9B\x00\x19\xD1\x87\x96\x48", 0xa9, STR("NetBSD CCD"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[25].name') 69 | #define STR(x) L##x | ^ lib.c:129:81: note: in expansion of macro 'STR' 129 | { "\xC4\x19\xB5\x2D\x0E\xB1\xDC\x11\xB9\x9B\x00\x19\xD1\x87\x96\x48", 0xa9, STR("NetBSD CCD"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:130:81: note: in expansion of macro 'STR' 130 | { "\xEC\x19\xB5\x2D\x0E\xB1\xDC\x11\xB9\x9B\x00\x19\xD1\x87\x96\x48", 0xa9, STR("NetBSD CGD"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[26].name') 69 | #define STR(x) L##x | ^ lib.c:130:81: note: in expansion of macro 'STR' 130 | { "\xEC\x19\xB5\x2D\x0E\xB1\xDC\x11\xB9\x9B\x00\x19\xD1\x87\x96\x48", 0xa9, STR("NetBSD CGD"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:133:81: note: in expansion of macro 'STR' 133 | { "\x00\x53\x46\x48\x00\x00\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 0xaf, STR("MacOS HFS+"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[27].name') 69 | #define STR(x) L##x | ^ lib.c:133:81: note: in expansion of macro 'STR' 133 | { "\x00\x53\x46\x48\x00\x00\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 0xaf, STR("MacOS HFS+"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:134:81: note: in expansion of macro 'STR' 134 | { "\x72\x6F\x74\x53\x67\x61\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 0xaf, STR("MacOS Core Storage"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[28].name') 69 | #define STR(x) L##x | ^ lib.c:134:81: note: in expansion of macro 'STR' 134 | { "\x72\x6F\x74\x53\x67\x61\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 0xaf, STR("MacOS Core Storage"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:135:81: note: in expansion of macro 'STR' 135 | { "\x00\x53\x46\x55\x00\x00\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 0xa8, STR("MacOS UFS"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[29].name') 69 | #define STR(x) L##x | ^ lib.c:135:81: note: in expansion of macro 'STR' 135 | { "\x00\x53\x46\x55\x00\x00\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 0xa8, STR("MacOS UFS"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:136:81: note: in expansion of macro 'STR' 136 | { "\x74\x6F\x6F\x42\x00\x00\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 0xab, STR("MacOS Boot"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[30].name') 69 | #define STR(x) L##x | ^ lib.c:136:81: note: in expansion of macro 'STR' 136 | { "\x74\x6F\x6F\x42\x00\x00\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 0xab, STR("MacOS Boot"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:137:81: note: in expansion of macro 'STR' 137 | { "\x44\x49\x41\x52\x00\x00\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 0xac, STR("Apple RAID"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[31].name') 69 | #define STR(x) L##x | ^ lib.c:137:81: note: in expansion of macro 'STR' 137 | { "\x44\x49\x41\x52\x00\x00\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 0xac, STR("Apple RAID"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:138:81: note: in expansion of macro 'STR' 138 | { "\x44\x49\x41\x52\x4F\x5F\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 0xac, STR("Apple RAID (Offline)"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[32].name') 69 | #define STR(x) L##x | ^ lib.c:138:81: note: in expansion of macro 'STR' 138 | { "\x44\x49\x41\x52\x4F\x5F\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 0xac, STR("Apple RAID (Offline)"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:139:81: note: in expansion of macro 'STR' 139 | { "\x65\x62\x61\x4C\x00\x6C\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 0x00, STR("Apple Label"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[33].name') 69 | #define STR(x) L##x | ^ lib.c:139:81: note: in expansion of macro 'STR' 139 | { "\x65\x62\x61\x4C\x00\x6C\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 0x00, STR("Apple Label"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:141:81: note: in expansion of macro 'STR' 141 | { "\x6F\x63\x65\x52\x65\x76\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 0x00, STR("Apple TV Recovery"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[34].name') 69 | #define STR(x) L##x | ^ lib.c:141:81: note: in expansion of macro 'STR' 141 | { "\x6F\x63\x65\x52\x65\x76\xAA\x11\xAA\x11\x00\x30\x65\x43\xEC\xAC", 0x00, STR("Apple TV Recovery"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:143:81: note: in expansion of macro 'STR' 143 | { "\x7f\x23\x96\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0x00, STR("Solaris Reserved"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[35].name') 69 | #define STR(x) L##x | ^ lib.c:143:81: note: in expansion of macro 'STR' 143 | { "\x7f\x23\x96\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0x00, STR("Solaris Reserved"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:144:81: note: in expansion of macro 'STR' 144 | { "\x45\xCB\x82\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0xbf, STR("Solaris Boot"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[36].name') 69 | #define STR(x) L##x | ^ lib.c:144:81: note: in expansion of macro 'STR' 144 | { "\x45\xCB\x82\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0xbf, STR("Solaris Boot"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:145:81: note: in expansion of macro 'STR' 145 | { "\x4D\xCF\x85\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0xbf, STR("Solaris Root"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[37].name') 69 | #define STR(x) L##x | ^ lib.c:145:81: note: in expansion of macro 'STR' 145 | { "\x4D\xCF\x85\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0xbf, STR("Solaris Root"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:146:81: note: in expansion of macro 'STR' 146 | { "\x6F\xC4\x87\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0x00, STR("Solaris Swap"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[38].name') 69 | #define STR(x) L##x | ^ lib.c:146:81: note: in expansion of macro 'STR' 146 | { "\x6F\xC4\x87\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0x00, STR("Solaris Swap"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:147:81: note: in expansion of macro 'STR' 147 | { "\xC3\x8C\x89\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0xbf, STR("Solaris Usr / Apple ZFS"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[39].name') 69 | #define STR(x) L##x | ^ lib.c:147:81: note: in expansion of macro 'STR' 147 | { "\xC3\x8C\x89\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0xbf, STR("Solaris Usr / Apple ZFS"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:148:81: note: in expansion of macro 'STR' 148 | { "\x2B\x64\x8B\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0x00, STR("Solaris Backup"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[40].name') 69 | #define STR(x) L##x | ^ lib.c:148:81: note: in expansion of macro 'STR' 148 | { "\x2B\x64\x8B\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0x00, STR("Solaris Backup"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:149:81: note: in expansion of macro 'STR' 149 | { "\xC7\x2A\x8D\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0x00, STR("Solaris Reserved (Stand)"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[41].name') 69 | #define STR(x) L##x | ^ lib.c:149:81: note: in expansion of macro 'STR' 149 | { "\xC7\x2A\x8D\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0x00, STR("Solaris Reserved (Stand)"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:150:81: note: in expansion of macro 'STR' 150 | { "\xE9\xF2\x8E\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0xbf, STR("Solaris Var"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[42].name') 69 | #define STR(x) L##x | ^ lib.c:150:81: note: in expansion of macro 'STR' 150 | { "\xE9\xF2\x8E\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0xbf, STR("Solaris Var"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:151:81: note: in expansion of macro 'STR' 151 | { "\x39\xBA\x90\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0xbf, STR("Solaris Home"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[43].name') 69 | #define STR(x) L##x | ^ lib.c:151:81: note: in expansion of macro 'STR' 151 | { "\x39\xBA\x90\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0xbf, STR("Solaris Home"), GPT_KIND_DATA }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:152:81: note: in expansion of macro 'STR' 152 | { "\xA5\x83\x92\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0x00, STR("Solaris Alternate Sector"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[44].name') 69 | #define STR(x) L##x | ^ lib.c:152:81: note: in expansion of macro 'STR' 152 | { "\xA5\x83\x92\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0x00, STR("Solaris Alternate Sector"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:153:81: note: in expansion of macro 'STR' 153 | { "\x3B\x5A\x94\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0x00, STR("Solaris Reserved (Cache)"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[45].name') 69 | #define STR(x) L##x | ^ lib.c:153:81: note: in expansion of macro 'STR' 153 | { "\x3B\x5A\x94\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0x00, STR("Solaris Reserved (Cache)"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:154:81: note: in expansion of macro 'STR' 154 | { "\xD1\x30\x96\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0x00, STR("Solaris Reserved"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[46].name') 69 | #define STR(x) L##x | ^ lib.c:154:81: note: in expansion of macro 'STR' 154 | { "\xD1\x30\x96\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0x00, STR("Solaris Reserved"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:155:81: note: in expansion of macro 'STR' 155 | { "\x67\x07\x98\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0x00, STR("Solaris Reserved"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_types[47].name') 69 | #define STR(x) L##x | ^ lib.c:155:81: note: in expansion of macro 'STR' 155 | { "\x67\x07\x98\x6A\xD2\x1D\xB2\x11\x99\xa6\x08\x00\x20\x73\x66\x31", 0x00, STR("Solaris Reserved"), GPT_KIND_SYSTEM }, | ^~~ gptsync.h:69:16: warning: initialization of 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:160:47: note: in expansion of macro 'STR' 160 | { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, 0, STR("Unknown"), GPT_KIND_FATAL }; | ^~~ gptsync.h:69:16: note: (near initialization for 'gpt_dummy_type.name') 69 | #define STR(x) L##x | ^ lib.c:160:47: note: in expansion of macro 'STR' 160 | { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, 0, STR("Unknown"), GPT_KIND_FATAL }; | ^~~ lib.c: In function 'mbr_parttype_name': gptsync.h:69:16: warning: returning 'short unsigned int *' from a function with incompatible return type 'CHARN *' {aka 'int *'} [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ lib.c:173:12: note: in expansion of macro 'STR' 173 | return STR("Unknown"); | ^~~ lib.c: In function 'read_mbr': lib.c:183:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 183 | Print(L"\nCurrent MBR partition table:\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from gptsync.h:60: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, lib.c:192:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 192 | Print(L" No MBR partition table present!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, lib.c:198:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 198 | Print(L" MBR partition table is invalid!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, lib.c:212:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 212 | Print(L" No partitions defined\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, lib.c:217:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 217 | Print(L" # A Start LBA End LBA Type\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, lib.c:228:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 228 | Print(L" %d %s %12lld %12lld %02x %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, lib.c: In function 'read_gpt': lib.c:264:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 264 | Print(L"\nCurrent GUID partition table:\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, lib.c:274:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 274 | Print(L" No GPT partition table present!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, lib.c:278:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 278 | Print(L" Warning: Unknown GPT spec revision 0x%08x\n", header->spec_revision); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, lib.c:281:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 281 | Print(L" Error: Invalid GPT entry size (misaligned or more than 512 bytes)\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, lib.c:302:19: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 302 | Print(L" # Start LBA End LBA Type\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, lib.c:313:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 313 | Print(L" %d %12lld %12lld %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, lib.c:322:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 322 | Print(L" No partitions defined\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, lib.c: In function 'detect_mbrtype_fs': lib.c:339:13: warning: assignment to 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 339 | *fsname = STR("Unknown"); | ^ lib.c:351:17: warning: assignment to 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 351 | *fsname = STR("XFS"); | ^ lib.c:364:21: warning: assignment to 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 364 | *fsname = STR("NTFS"); | ^ lib.c:406:25: warning: assignment to 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 406 | *fsname = STR("FAT12"); | ^ lib.c:409:25: warning: assignment to 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 409 | *fsname = STR("FAT16"); | ^ lib.c:412:25: warning: assignment to 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 412 | *fsname = STR("FAT32"); | ^ lib.c:429:21: warning: assignment to 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 429 | *fsname = STR("HFS Extended (HFS+)"); | ^ lib.c:431:21: warning: assignment to 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 431 | *fsname = STR("HFS Standard"); | ^ lib.c:435:17: warning: assignment to 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 435 | *fsname = STR("HFS Extended (HFS+)"); | ^ lib.c:445:21: warning: assignment to 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 445 | *fsname = STR("ext4"); | ^ lib.c:447:21: warning: assignment to 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 447 | *fsname = STR("ext3"); | ^ lib.c:449:21: warning: assignment to 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 449 | *fsname = STR("ext2"); | ^ lib.c:461:17: warning: assignment to 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 461 | *fsname = STR("btrfs"); | ^ lib.c:470:17: warning: assignment to 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 470 | *fsname = STR("ReiserFS"); | ^ lib.c:477:17: warning: assignment to 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 477 | *fsname = STR("Reiser4"); | ^ lib.c:489:17: warning: assignment to 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 489 | *fsname = STR("JFS"); | ^ lib.c:503:17: warning: assignment to 'CHARN *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 503 | *fsname = STR("ReiserFS"); | ^ /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip \ -D__MAKEWITH_GNUEFI -c os_efi.c -o os_efi.o os_efi.c: In function 'PauseForKey': os_efi.c:107:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 107 | Print(L"\n* Hit any key to continue *"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from gptsync.h:60, from os_efi.c:37: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, os_efi.c:117:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 117 | Print(L"\n"); | ^~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, os_efi.c: In function 'input_boolean': os_efi.c:137:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 137 | Print(L"Yes\n"); | ^~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, os_efi.c:140:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 140 | Print(L"No\n"); | ^~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, os_efi.c: In function 'VerifyGoOn': os_efi.c:192:19: warning: passing argument 1 of 'MyStriCmp' from incompatible pointer type [-Wincompatible-pointer-types] 192 | if (!MyStriCmp(L"Apple", ST->FirmwareVendor)) { | ^~~~~~~~ | | | short unsigned int * os_efi.c:174:37: note: expected 'CHAR16 *' {aka 'int *'} but argument is of type 'short unsigned int *' 174 | static BOOLEAN MyStriCmp(IN CHAR16 *FirstString, IN CHAR16 *SecondString) { | ~~~~~~~~^~~~~~~~~~~ os_efi.c:193:13: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 193 | Print(L"Your firmware is made by %s.\n", ST->FirmwareVendor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, os_efi.c:194:13: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 194 | Print(L"Ordinarily, a hybrid MBR (which this program creates) should be used ONLY on\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, os_efi.c:195:13: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 195 | Print(L"Apple Macs that dual-boot with Windows or some other BIOS-mode OS. Are you\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, gptsync.h:69:16: warning: passing argument 1 of 'input_boolean' from incompatible pointer type [-Wincompatible-pointer-types] 69 | #define STR(x) L##x | ^ | | | short unsigned int * os_efi.c:196:31: note: in expansion of macro 'STR' 196 | invalid = input_boolean(STR("SURE you want to continue? [y/N] "), &GoOn); | ^~~ os_efi.c:120:28: note: expected 'CHARN *' {aka 'int *'} but argument is of type 'short unsigned int *' 120 | UINTN input_boolean(CHARN *prompt, BOOLEAN *bool_out) | ~~~~~~~^~~~~~ os_efi.c: In function 'efi_main': os_efi.c:272:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 272 | Print(L"Internal hard disk device not found!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, /usr/bin/ld -T /usr/lib/elf_x86_64_efi.lds -shared -Bsymbolic -nostdlib -L/usr/lib -L/usr/lib /usr/lib/crt0-efi-x86_64.o -znocombreloc -zdefs gptsync.o lib.o os_efi.o -o gptsync_x64.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/13.1.1/libgcc.a /usr/bin/objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel \ -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-app-x86_64 gptsync_x64.so gptsync_x64.efi /usr/bin/objcopy --set-section-alignment '.sbat=512' --add-section \ .sbat=../refind-sbat.csv --adjust-section-vma \ .sbat+10000000 gptsync_x64.efi chmod a-x gptsync_x64.efi make[2]: Leaving directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/gptsync' make[1]: Leaving directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/gptsync' make MAKEWITH=GNUEFI -C filesystems all_gnuefi make[1]: Entering directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/filesystems' rm -f fsw_efi.o make DRIVERNAME=ext2 -f Make.gnuefi make[2]: Entering directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/filesystems' /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DFSTYPE=ext2 -I. "-DEFIAPI=__attribute__((ms_abi))" \ -D__MAKEWITH_GNUEFI -c fsw_core.c -o fsw_core.o /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DFSTYPE=ext2 -I. "-DEFIAPI=__attribute__((ms_abi))" \ -D__MAKEWITH_GNUEFI -c fsw_efi.c -o fsw_efi.o fsw_efi.c: In function 'fsw_efi_DriverBinding_Start': fsw_efi.c:351:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 351 | Print(L"Fsw ERROR: OpenProtocol(DiskIo) returned %x\n", Status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from fsw_efi_base.h:47, from fsw_core.h:45, from fsw_efi.h:41, from fsw_efi.c:41: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_efi.c: In function 'fsw_efi_ComponentName_GetDriverName': fsw_efi.c:473:21: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 473 | *DriverName = FSW_EFI_DRIVER_NAME(FSTYPE); | ^ /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DFSTYPE=ext2 -I. "-DEFIAPI=__attribute__((ms_abi))" \ -D__MAKEWITH_GNUEFI -c fsw_efi_lib.c -o fsw_efi_lib.o /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DFSTYPE=ext2 -I. "-DEFIAPI=__attribute__((ms_abi))" \ -D__MAKEWITH_GNUEFI -c fsw_lib.c -o fsw_lib.o /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DFSTYPE=ext2 -I. "-DEFIAPI=__attribute__((ms_abi))" \ -D__MAKEWITH_GNUEFI -c fsw_ext2.c -o fsw_ext2.o /usr/bin/ld -T /usr/lib/elf_x86_64_efi.lds -shared -Bsymbolic -nostdlib -L/usr/lib -L/usr/lib /usr/lib/crt0-efi-x86_64.o -znocombreloc -zdefs fsw_core.o fsw_efi.o fsw_efi_lib.o fsw_lib.o fsw_ext2.o -o ext2_x64.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/13.1.1/libgcc.a /usr/bin/objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel \ -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-bsdrv-x86_64 ext2_x64.so ext2_x64.efi /usr/bin/objcopy --set-section-alignment '.sbat=512' --add-section \ .sbat=./../refind-sbat.csv --adjust-section-vma \ .sbat+10000000 ext2_x64.efi chmod a-x ext2_x64.efi mkdir -p ../drivers_x64 cp ext2_x64.efi ../drivers_x64 make[2]: Leaving directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/filesystems' rm -f fsw_efi.o make DRIVERNAME=ext4 -f Make.gnuefi make[2]: Entering directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/filesystems' /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DFSTYPE=ext4 -I. "-DEFIAPI=__attribute__((ms_abi))" \ -D__MAKEWITH_GNUEFI -c fsw_efi.c -o fsw_efi.o fsw_efi.c: In function 'fsw_efi_DriverBinding_Start': fsw_efi.c:351:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 351 | Print(L"Fsw ERROR: OpenProtocol(DiskIo) returned %x\n", Status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from fsw_efi_base.h:47, from fsw_core.h:45, from fsw_efi.h:41, from fsw_efi.c:41: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_efi.c: In function 'fsw_efi_ComponentName_GetDriverName': fsw_efi.c:473:21: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 473 | *DriverName = FSW_EFI_DRIVER_NAME(FSTYPE); | ^ /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DFSTYPE=ext4 -I. "-DEFIAPI=__attribute__((ms_abi))" \ -D__MAKEWITH_GNUEFI -c fsw_ext4.c -o fsw_ext4.o /usr/bin/ld -T /usr/lib/elf_x86_64_efi.lds -shared -Bsymbolic -nostdlib -L/usr/lib -L/usr/lib /usr/lib/crt0-efi-x86_64.o -znocombreloc -zdefs fsw_core.o fsw_efi.o fsw_efi_lib.o fsw_lib.o fsw_ext4.o -o ext4_x64.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/13.1.1/libgcc.a /usr/bin/objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel \ -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-bsdrv-x86_64 ext4_x64.so ext4_x64.efi /usr/bin/objcopy --set-section-alignment '.sbat=512' --add-section \ .sbat=./../refind-sbat.csv --adjust-section-vma \ .sbat+10000000 ext4_x64.efi chmod a-x ext4_x64.efi mkdir -p ../drivers_x64 cp ext4_x64.efi ../drivers_x64 make[2]: Leaving directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/filesystems' rm -f fsw_efi.o make DRIVERNAME=reiserfs -f Make.gnuefi make[2]: Entering directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/filesystems' /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DFSTYPE=reiserfs -I. "-DEFIAPI=__attribute__((ms_abi))" \ -D__MAKEWITH_GNUEFI -c fsw_efi.c -o fsw_efi.o fsw_efi.c: In function 'fsw_efi_DriverBinding_Start': fsw_efi.c:351:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 351 | Print(L"Fsw ERROR: OpenProtocol(DiskIo) returned %x\n", Status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from fsw_efi_base.h:47, from fsw_core.h:45, from fsw_efi.h:41, from fsw_efi.c:41: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_efi.c: In function 'fsw_efi_ComponentName_GetDriverName': fsw_efi.c:473:21: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 473 | *DriverName = FSW_EFI_DRIVER_NAME(FSTYPE); | ^ /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DFSTYPE=reiserfs -I. "-DEFIAPI=__attribute__((ms_abi))" \ -D__MAKEWITH_GNUEFI -c fsw_reiserfs.c -o fsw_reiserfs.o In file included from fsw_core.h:43, from fsw_reiserfs.h:29, from fsw_reiserfs.c:24: fsw_reiserfs.c: In function 'fsw_reiserfs_dnode_fill': fsw_efi_base.h:78:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 78 | #define FSW_MSGSTR(s) L##s | ^ | | | short unsigned int * fsw_base.h:62:44: note: in definition of macro 'FSW_MSG_ASSERT' 62 | #define FSW_MSG_ASSERT(params) FSW_MSGFUNC params | ^~~~~~ fsw_reiserfs.c:222:25: note: in expansion of macro 'FSW_MSGSTR' 222 | FSW_MSG_ASSERT((FSW_MSGSTR("fsw_reiserfs_dnode_fill: cannot find stat_data for object %d/%d\n"), | ^~~~~~~~~~ In file included from fsw_efi_base.h:47, from fsw_core.h:45: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_efi_base.h:78:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 78 | #define FSW_MSGSTR(s) L##s | ^ | | | short unsigned int * fsw_base.h:62:44: note: in definition of macro 'FSW_MSG_ASSERT' 62 | #define FSW_MSG_ASSERT(params) FSW_MSGFUNC params | ^~~~~~ fsw_reiserfs.c:229:25: note: in expansion of macro 'FSW_MSGSTR' 229 | FSW_MSG_ASSERT((FSW_MSGSTR("fsw_reiserfs_dnode_fill: got item that's not stat_data\n"))); | ^~~~~~~~~~ /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_efi_base.h:78:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 78 | #define FSW_MSGSTR(s) L##s | ^ | | | short unsigned int * fsw_base.h:62:44: note: in definition of macro 'FSW_MSG_ASSERT' 62 | #define FSW_MSG_ASSERT(params) FSW_MSGFUNC params | ^~~~~~ fsw_reiserfs.c:259:25: note: in expansion of macro 'FSW_MSGSTR' 259 | FSW_MSG_ASSERT((FSW_MSGSTR("fsw_reiserfs_dnode_fill: version %d(%d) and size %d(%d) not recognized for stat_data\n"), | ^~~~~~~~~~ /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_reiserfs.c: In function 'fsw_reiserfs_get_extent': fsw_efi_base.h:78:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 78 | #define FSW_MSGSTR(s) L##s | ^ | | | short unsigned int * fsw_base.h:62:44: note: in definition of macro 'FSW_MSG_ASSERT' 62 | #define FSW_MSG_ASSERT(params) FSW_MSGFUNC params | ^~~~~~ fsw_reiserfs.c:364:29: note: in expansion of macro 'FSW_MSGSTR' 364 | FSW_MSG_ASSERT((FSW_MSGSTR("fsw_reiserfs_get_extent: intra_offset not block-aligned for indirect block\n"))); | ^~~~~~~~~~ /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_efi_base.h:78:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 78 | #define FSW_MSGSTR(s) L##s | ^ | | | short unsigned int * fsw_base.h:62:44: note: in definition of macro 'FSW_MSG_ASSERT' 62 | #define FSW_MSG_ASSERT(params) FSW_MSGFUNC params | ^~~~~~ fsw_reiserfs.c:370:29: note: in expansion of macro 'FSW_MSGSTR' 370 | FSW_MSG_ASSERT((FSW_MSGSTR("fsw_reiserfs_get_extent: indirect block too small\n"))); | ^~~~~~~~~~ /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_efi_base.h:78:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 78 | #define FSW_MSGSTR(s) L##s | ^ | | | short unsigned int * fsw_base.h:62:44: note: in definition of macro 'FSW_MSG_ASSERT' 62 | #define FSW_MSG_ASSERT(params) FSW_MSGFUNC params | ^~~~~~ fsw_reiserfs.c:388:29: note: in expansion of macro 'FSW_MSGSTR' 388 | FSW_MSG_ASSERT((FSW_MSGSTR("fsw_reiserfs_get_extent: intra_offset not aligned for direct block\n"))); | ^~~~~~~~~~ /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_reiserfs.c: In function 'fsw_reiserfs_item_search': fsw_efi_base.h:78:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 78 | #define FSW_MSGSTR(s) L##s | ^ | | | short unsigned int * fsw_base.h:62:44: note: in definition of macro 'FSW_MSG_ASSERT' 62 | #define FSW_MSG_ASSERT(params) FSW_MSGFUNC params | ^~~~~~ fsw_reiserfs.c:665:29: note: in expansion of macro 'FSW_MSGSTR' 665 | FSW_MSG_ASSERT((FSW_MSGSTR("fsw_reiserfs_item_search: tree block %d has not expected level %d\n"), tree_bno, tree_level)); | ^~~~~~~~~~ /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_reiserfs.c: In function 'fsw_reiserfs_item_next': fsw_efi_base.h:78:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 78 | #define FSW_MSGSTR(s) L##s | ^ | | | short unsigned int * fsw_base.h:62:44: note: in definition of macro 'FSW_MSG_ASSERT' 62 | #define FSW_MSG_ASSERT(params) FSW_MSGFUNC params | ^~~~~~ fsw_reiserfs.c:779:29: note: in expansion of macro 'FSW_MSGSTR' 779 | FSW_MSG_ASSERT((FSW_MSGSTR("fsw_reiserfs_item_next: tree block %d has not expected level %d\n"), tree_bno, tree_level)); | ^~~~~~~~~~ /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_efi_base.h:78:23: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 78 | #define FSW_MSGSTR(s) L##s | ^ | | | short unsigned int * fsw_base.h:62:44: note: in definition of macro 'FSW_MSG_ASSERT' 62 | #define FSW_MSG_ASSERT(params) FSW_MSGFUNC params | ^~~~~~ fsw_reiserfs.c:808:33: note: in expansion of macro 'FSW_MSGSTR' 808 | FSW_MSG_ASSERT((FSW_MSGSTR("fsw_reiserfs_item_next: tree block %d has not expected level %d\n"), tree_bno, tree_level)); | ^~~~~~~~~~ /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, /usr/bin/ld -T /usr/lib/elf_x86_64_efi.lds -shared -Bsymbolic -nostdlib -L/usr/lib -L/usr/lib /usr/lib/crt0-efi-x86_64.o -znocombreloc -zdefs fsw_core.o fsw_efi.o fsw_efi_lib.o fsw_lib.o fsw_reiserfs.o -o reiserfs_x64.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/13.1.1/libgcc.a /usr/bin/objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel \ -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-bsdrv-x86_64 reiserfs_x64.so reiserfs_x64.efi /usr/bin/objcopy --set-section-alignment '.sbat=512' --add-section \ .sbat=./../refind-sbat.csv --adjust-section-vma \ .sbat+10000000 reiserfs_x64.efi chmod a-x reiserfs_x64.efi mkdir -p ../drivers_x64 cp reiserfs_x64.efi ../drivers_x64 make[2]: Leaving directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/filesystems' rm -f fsw_efi.o make DRIVERNAME=iso9660 -f Make.gnuefi make[2]: Entering directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/filesystems' /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DFSTYPE=iso9660 -I. "-DEFIAPI=__attribute__((ms_abi))" \ -D__MAKEWITH_GNUEFI -c fsw_efi.c -o fsw_efi.o fsw_efi.c: In function 'fsw_efi_DriverBinding_Start': fsw_efi.c:351:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 351 | Print(L"Fsw ERROR: OpenProtocol(DiskIo) returned %x\n", Status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from fsw_efi_base.h:47, from fsw_core.h:45, from fsw_efi.h:41, from fsw_efi.c:41: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_efi.c: In function 'fsw_efi_ComponentName_GetDriverName': fsw_efi.c:473:21: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 473 | *DriverName = FSW_EFI_DRIVER_NAME(FSTYPE); | ^ /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DFSTYPE=iso9660 -I. "-DEFIAPI=__attribute__((ms_abi))" \ -D__MAKEWITH_GNUEFI -c fsw_iso9660.c -o fsw_iso9660.o fsw_iso9660.c: In function 'fsw_iso9660_read_dirrec': fsw_iso9660.c:621:17: warning: variable 'r' set but not used [-Wunused-but-set-variable] 621 | fsw_u8 *r; | ^ /usr/bin/ld -T /usr/lib/elf_x86_64_efi.lds -shared -Bsymbolic -nostdlib -L/usr/lib -L/usr/lib /usr/lib/crt0-efi-x86_64.o -znocombreloc -zdefs fsw_core.o fsw_efi.o fsw_efi_lib.o fsw_lib.o fsw_iso9660.o -o iso9660_x64.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/13.1.1/libgcc.a /usr/bin/objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel \ -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-bsdrv-x86_64 iso9660_x64.so iso9660_x64.efi /usr/bin/objcopy --set-section-alignment '.sbat=512' --add-section \ .sbat=./../refind-sbat.csv --adjust-section-vma \ .sbat+10000000 iso9660_x64.efi chmod a-x iso9660_x64.efi mkdir -p ../drivers_x64 cp iso9660_x64.efi ../drivers_x64 make[2]: Leaving directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/filesystems' rm -f fsw_efi.o make DRIVERNAME=hfs -f Make.gnuefi make[2]: Entering directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/filesystems' /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DFSTYPE=hfs -I. "-DEFIAPI=__attribute__((ms_abi))" \ -D__MAKEWITH_GNUEFI -c fsw_efi.c -o fsw_efi.o fsw_efi.c: In function 'fsw_efi_DriverBinding_Start': fsw_efi.c:351:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 351 | Print(L"Fsw ERROR: OpenProtocol(DiskIo) returned %x\n", Status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from fsw_efi_base.h:47, from fsw_core.h:45, from fsw_efi.h:41, from fsw_efi.c:41: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_efi.c: In function 'fsw_efi_ComponentName_GetDriverName': fsw_efi.c:473:21: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 473 | *DriverName = FSW_EFI_DRIVER_NAME(FSTYPE); | ^ /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DFSTYPE=hfs -I. "-DEFIAPI=__attribute__((ms_abi))" \ -D__MAKEWITH_GNUEFI -c fsw_hfs.c -o fsw_hfs.o fsw_hfs.c: In function 'fsw_hfs_volume_mount': fsw_hfs.c:34:32: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 34 | #define DPRINT(x) Print(CONCAT(L,x)) | ^ | | | short unsigned int * fsw_hfs.c:33:21: note: in definition of macro 'CONCAT' 33 | #define CONCAT(x,y) x##y | ^ fsw_hfs.c:295:17: note: in expansion of macro 'DPRINT' 295 | DPRINT("found HFS+ inside HFS, untested\n"); | ^~~~~~ In file included from fsw_efi_base.h:47, from fsw_core.h:45, from fsw_hfs.h:24, from fsw_hfs.c:26: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_hfs.c:34:32: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 34 | #define DPRINT(x) Print(CONCAT(L,x)) | ^ | | | short unsigned int * fsw_hfs.c:33:21: note: in definition of macro 'CONCAT' 33 | #define CONCAT(x,y) x##y | ^ fsw_hfs.c:304:17: note: in expansion of macro 'DPRINT' 304 | DPRINT("found plain HFS, unsupported\n"); | ^~~~~~ /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_hfs.c: In function 'fsw_hfs_btree_search': fsw_hfs.c:34:32: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 34 | #define DPRINT(x) Print(CONCAT(L,x)) | ^ | | | short unsigned int * fsw_hfs.c:33:21: note: in definition of macro 'CONCAT' 33 | #define CONCAT(x,y) x##y | ^ fsw_hfs.c:36:17: note: in expansion of macro 'DPRINT' 36 | #define BP(msg) DPRINT(msg) | ^~~~~~ fsw_hfs.c:631:13: note: in expansion of macro 'BP' 631 | BP("corrupted node\n"); | ^~ /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_hfs.c: In function 'fsw_hfs_btree_visit_node': fsw_hfs.c:34:32: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 34 | #define DPRINT(x) Print(CONCAT(L,x)) | ^ | | | short unsigned int * fsw_hfs.c:33:21: note: in definition of macro 'CONCAT' 33 | #define CONCAT(x,y) x##y | ^ fsw_hfs.c:36:17: note: in expansion of macro 'DPRINT' 36 | #define BP(msg) DPRINT(msg) | ^~~~~~ fsw_hfs.c:819:13: note: in expansion of macro 'BP' 819 | BP("unknown file type\n"); | ^~ /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_hfs.c: In function 'fsw_hfs_dir_lookup': fsw_hfs.c:35:35: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 35 | #define DPRINT2(x,y) Print(CONCAT(L,x), y) | ^ | | | short unsigned int * fsw_hfs.c:33:21: note: in definition of macro 'CONCAT' 33 | #define CONCAT(x,y) x##y | ^ fsw_hfs.c:1212:13: note: in expansion of macro 'DPRINT2' 1212 | DPRINT2("Blacklisted %s\n", g_blacklist[i]); | ^~~~~~~ /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_hfs.c:34:32: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 34 | #define DPRINT(x) Print(CONCAT(L,x)) | ^ | | | short unsigned int * fsw_hfs.c:33:21: note: in definition of macro 'CONCAT' 33 | #define CONCAT(x,y) x##y | ^ fsw_hfs.c:36:17: note: in expansion of macro 'DPRINT' 36 | #define BP(msg) DPRINT(msg) | ^~~~~~ fsw_hfs.c:1276:13: note: in expansion of macro 'BP' 1276 | BP("unknown file type\n"); | ^~ /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, /usr/bin/ld -T /usr/lib/elf_x86_64_efi.lds -shared -Bsymbolic -nostdlib -L/usr/lib -L/usr/lib /usr/lib/crt0-efi-x86_64.o -znocombreloc -zdefs fsw_core.o fsw_efi.o fsw_efi_lib.o fsw_lib.o fsw_hfs.o -o hfs_x64.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/13.1.1/libgcc.a /usr/bin/objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel \ -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-bsdrv-x86_64 hfs_x64.so hfs_x64.efi /usr/bin/objcopy --set-section-alignment '.sbat=512' --add-section \ .sbat=./../refind-sbat.csv --adjust-section-vma \ .sbat+10000000 hfs_x64.efi chmod a-x hfs_x64.efi mkdir -p ../drivers_x64 cp hfs_x64.efi ../drivers_x64 make[2]: Leaving directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/filesystems' rm -f fsw_efi.o make DRIVERNAME=btrfs -f Make.gnuefi make[2]: Entering directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/filesystems' /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DFSTYPE=btrfs -I. "-DEFIAPI=__attribute__((ms_abi))" \ -D__MAKEWITH_GNUEFI -c fsw_efi.c -o fsw_efi.o fsw_efi.c: In function 'fsw_efi_DriverBinding_Start': fsw_efi.c:351:15: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 351 | Print(L"Fsw ERROR: OpenProtocol(DiskIo) returned %x\n", Status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | short unsigned int * In file included from fsw_efi_base.h:47, from fsw_core.h:45, from fsw_efi.h:41, from fsw_efi.c:41: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, fsw_efi.c: In function 'fsw_efi_ComponentName_GetDriverName': fsw_efi.c:473:21: warning: assignment to 'CHAR16 *' {aka 'int *'} from incompatible pointer type 'short unsigned int *' [-Wincompatible-pointer-types] 473 | *DriverName = FSW_EFI_DRIVER_NAME(FSTYPE); | ^ /usr/bin/gcc -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns -fno-stack-protector -fshort-wchar -Wall -DEFIX64 -DEFI_FUNCTION_WRAPPER -m64 -mno-red-zone -fpic -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/efi/protocol -I../include -I../refind -I../libeg -I../mok -I../gzip -DFSTYPE=btrfs -I. "-DEFIAPI=__attribute__((ms_abi))" \ -D__MAKEWITH_GNUEFI -c fsw_btrfs.c -o fsw_btrfs.o In file included from fsw_btrfs.c:60: scandisk.c: In function 'scan_disks': scandisk.c:102:11: warning: passing argument 1 of 'Print' from incompatible pointer type [-Wincompatible-pointer-types] 102 | Print(L" "); | ^~~~ | | | short unsigned int * In file included from fsw_efi_base.h:47, from fsw_core.h:45, from fsw_btrfs.c:31: /usr/include/efi/efilib.h:530:24: note: expected 'const CHAR16 *' {aka 'const int *'} but argument is of type 'short unsigned int *' 530 | IN CONST CHAR16 *fmt, In file included from fsw_btrfs.c:1586: fsw_btrfs_zstd.h: At top level: fsw_btrfs_zstd.h:8: warning: "PAGE_SIZE" redefined 8 | #define PAGE_SIZE 4096 | In file included from minilzo.c:65, from fsw_btrfs.c:59: /usr/include/limits.h:97: note: this is the location of the previous definition 97 | #define PAGE_SIZE PAGESIZE | /usr/bin/ld -T /usr/lib/elf_x86_64_efi.lds -shared -Bsymbolic -nostdlib -L/usr/lib -L/usr/lib /usr/lib/crt0-efi-x86_64.o -znocombreloc -zdefs fsw_core.o fsw_efi.o fsw_efi_lib.o fsw_lib.o fsw_btrfs.o -o btrfs_x64.so -lefi -lgnuefi /usr/lib/gcc/x86_64-alpine-linux-musl/13.1.1/libgcc.a /usr/bin/objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel \ -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \ -j .reloc --target=efi-bsdrv-x86_64 btrfs_x64.so btrfs_x64.efi /usr/bin/objcopy --set-section-alignment '.sbat=512' --add-section \ .sbat=./../refind-sbat.csv --adjust-section-vma \ .sbat+10000000 btrfs_x64.efi chmod a-x btrfs_x64.efi mkdir -p ../drivers_x64 cp btrfs_x64.efi ../drivers_x64 make[2]: Leaving directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/filesystems' make[1]: Leaving directory '/home/buildozer/aports/testing/refind/src/refind-0.14.0.2/filesystems' >>> refind: Entering fakeroot... >>> refind-doc*: Running split function doc... >>> refind-doc*: Preparing subpackage refind-doc... >>> refind-doc*: Running postcheck for refind-doc >>> refind*: Running postcheck for refind >>> refind*: Preparing package refind... >>> refind*: Stripping binaries >>> WARNING: refind*: No arch specific binaries found so arch should probably be set to "noarch" >>> refind-doc*: Scanning shared objects >>> refind*: Scanning shared objects >>> refind-doc*: Tracing dependencies... >>> refind-doc*: Package size: 44.0 KB >>> refind-doc*: Compressing data... >>> refind-doc*: Create checksum... >>> refind-doc*: Create refind-doc-0.14.0.2-r1.apk >>> refind*: Tracing dependencies... >>> refind*: Package size: 2.0 MB >>> refind*: Compressing data... >>> refind*: Create checksum... >>> refind*: Create refind-0.14.0.2-r1.apk >>> refind: Build complete at Tue, 16 May 2023 17:09:24 +0000 elapsed time 0h 0m 28s >>> refind: Cleaning up srcdir >>> refind: Cleaning up pkgdir >>> refind: Uninstalling dependencies... (1/13) Purging .makedepends-refind (20230516.170858) (2/13) Purging bash (5.2.15-r3) Executing bash-5.2.15-r3.pre-deinstall (3/13) Purging efibootmgr (18-r2) (4/13) Purging lsblk (2.38.1-r8) (5/13) Purging gnu-efi-dev (3.0.17-r0) (6/13) Purging gnu-efi (3.0.17-r0) (7/13) Purging linux-headers (6.3-r0) (8/13) Purging efivar-libs (38-r4) (9/13) Purging libintl (0.21.1-r9) (10/13) Purging libmount (2.38.1-r8) (11/13) Purging libsmartcols (2.38.1-r8) (12/13) Purging readline (8.2.1-r2) (13/13) Purging libblkid (2.38.1-r8) Executing busybox-1.36.0-r11.trigger OK: 374 MiB in 102 packages >>> refind: Updating the testing/x86_64 repository index... >>> refind: Signing the index...