Module Name: src Committed By: mlelstv Date: Sat Feb 4 18:08:29 UTC 2017
Modified Files: src/sys/external/bsd/gnu-efi/dist/lib: dpath.c event.c hand.c hw.c Log Message: tag variables as __unused to appease compiler. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/sys/external/bsd/gnu-efi/dist/lib/dpath.c \ src/sys/external/bsd/gnu-efi/dist/lib/event.c \ src/sys/external/bsd/gnu-efi/dist/lib/hw.c cvs rdiff -u -r1.2 -r1.3 src/sys/external/bsd/gnu-efi/dist/lib/hand.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/gnu-efi/dist/lib/dpath.c diff -u src/sys/external/bsd/gnu-efi/dist/lib/dpath.c:1.1.1.1 src/sys/external/bsd/gnu-efi/dist/lib/dpath.c:1.2 --- src/sys/external/bsd/gnu-efi/dist/lib/dpath.c:1.1.1.1 Tue Apr 1 16:16:06 2014 +++ src/sys/external/bsd/gnu-efi/dist/lib/dpath.c Sat Feb 4 18:08:29 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: dpath.c,v 1.1.1.1 2014/04/01 16:16:06 jakllsch Exp $ */ +/* $NetBSD: dpath.c,v 1.2 2017/02/04 18:08:29 mlelstv Exp $ */ /*++ @@ -677,7 +677,7 @@ _DevPathIPv4 ( IN VOID *DevPath ) { - IPv4_DEVICE_PATH *IP; + IPv4_DEVICE_PATH *IP __unused; IP = DevPath; CatPrint(Str, L"IPv4(not-done)"); @@ -689,7 +689,7 @@ _DevPathIPv6 ( IN VOID *DevPath ) { - IPv6_DEVICE_PATH *IP; + IPv6_DEVICE_PATH *IP __unused; IP = DevPath; CatPrint(Str, L"IP-v6(not-done)"); @@ -701,7 +701,7 @@ _DevPathInfiniBand ( IN VOID *DevPath ) { - INFINIBAND_DEVICE_PATH *InfiniBand; + INFINIBAND_DEVICE_PATH *InfiniBand __unused; InfiniBand = DevPath; CatPrint(Str, L"InfiniBand(not-done)"); Index: src/sys/external/bsd/gnu-efi/dist/lib/event.c diff -u src/sys/external/bsd/gnu-efi/dist/lib/event.c:1.1.1.1 src/sys/external/bsd/gnu-efi/dist/lib/event.c:1.2 --- src/sys/external/bsd/gnu-efi/dist/lib/event.c:1.1.1.1 Tue Apr 1 16:16:06 2014 +++ src/sys/external/bsd/gnu-efi/dist/lib/event.c Sat Feb 4 18:08:29 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: event.c,v 1.1.1.1 2014/04/01 16:16:06 jakllsch Exp $ */ +/* $NetBSD: event.c,v 1.2 2017/02/04 18:08:29 mlelstv Exp $ */ /*++ @@ -29,7 +29,11 @@ LibCreateProtocolNotifyEvent ( OUT VOID *Registration ) { +#ifdef EFI_DEBUG EFI_STATUS Status; +#else + EFI_STATUS Status __unused; +#endif EFI_EVENT Event; // Index: src/sys/external/bsd/gnu-efi/dist/lib/hw.c diff -u src/sys/external/bsd/gnu-efi/dist/lib/hw.c:1.1.1.1 src/sys/external/bsd/gnu-efi/dist/lib/hw.c:1.2 --- src/sys/external/bsd/gnu-efi/dist/lib/hw.c:1.1.1.1 Tue Apr 1 16:16:06 2014 +++ src/sys/external/bsd/gnu-efi/dist/lib/hw.c Sat Feb 4 18:08:29 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: hw.c,v 1.1.1.1 2014/04/01 16:16:06 jakllsch Exp $ */ +/* $NetBSD: hw.c,v 1.2 2017/02/04 18:08:29 mlelstv Exp $ */ /*++ @@ -78,7 +78,7 @@ ReadPort ( ) { UINT32 Data; - EFI_STATUS Status; + EFI_STATUS Status __unused; Status = uefi_call_wrapper(GlobalIoFncs->Io.Read, 5, GlobalIoFncs, Width, (UINT64)Port, 1, &Data); ASSERT(!EFI_ERROR(Status)); @@ -93,7 +93,7 @@ WritePort ( IN UINTN Data ) { - EFI_STATUS Status; + EFI_STATUS Status __unused; Status = uefi_call_wrapper(GlobalIoFncs->Io.Write, 5, GlobalIoFncs, Width, (UINT64)Port, 1, &Data); ASSERT(!EFI_ERROR(Status)); @@ -108,7 +108,7 @@ ReadPciConfig ( ) { UINT32 Data; - EFI_STATUS Status; + EFI_STATUS Status __unused; Status = uefi_call_wrapper(GlobalIoFncs->Pci.Read, 5, GlobalIoFncs, Width, (UINT64)Address, 1, &Data); ASSERT(!EFI_ERROR(Status)); @@ -123,7 +123,7 @@ WritePciConfig ( IN UINTN Data ) { - EFI_STATUS Status; + EFI_STATUS Status __unused; Status = uefi_call_wrapper(GlobalIoFncs->Pci.Write, 5, GlobalIoFncs, Width, (UINT64)Address, 1, &Data); ASSERT(!EFI_ERROR(Status)); Index: src/sys/external/bsd/gnu-efi/dist/lib/hand.c diff -u src/sys/external/bsd/gnu-efi/dist/lib/hand.c:1.2 src/sys/external/bsd/gnu-efi/dist/lib/hand.c:1.3 --- src/sys/external/bsd/gnu-efi/dist/lib/hand.c:1.2 Tue Dec 15 12:36:10 2015 +++ src/sys/external/bsd/gnu-efi/dist/lib/hand.c Sat Feb 4 18:08:29 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: hand.c,v 1.2 2015/12/15 12:36:10 christos Exp $ */ +/* $NetBSD: hand.c,v 1.3 2017/02/04 18:08:29 mlelstv Exp $ */ /*++ @@ -119,7 +119,7 @@ LibLocateHandleByDiskSignature ( EFI_HANDLE *BlockIoBuffer; EFI_DEVICE_PATH *DevicePath; UINTN Index; - EFI_DEVICE_PATH *Start, *Next, *DevPath; + EFI_DEVICE_PATH *Start __unused, *Next, *DevPath; HARDDRIVE_DEVICE_PATH *HardDriveDevicePath; BOOLEAN Match; BOOLEAN PreviousNodeIsHardDriveDevicePath;