Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/gnu-efi/dist/lib tag variables as __unused ...



details:   https://anonhg.NetBSD.org/src/rev/25be5511aec1
branches:  trunk
changeset: 351167:25be5511aec1
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Feb 04 18:08:29 2017 +0000

description:
tag variables as __unused to appease compiler.

diffstat:

 sys/external/bsd/gnu-efi/dist/lib/dpath.c |   8 ++++----
 sys/external/bsd/gnu-efi/dist/lib/event.c |   6 +++++-
 sys/external/bsd/gnu-efi/dist/lib/hand.c  |   4 ++--
 sys/external/bsd/gnu-efi/dist/lib/hw.c    |  10 +++++-----
 4 files changed, 16 insertions(+), 12 deletions(-)

diffs (120 lines):

diff -r ed47b1636326 -r 25be5511aec1 sys/external/bsd/gnu-efi/dist/lib/dpath.c
--- a/sys/external/bsd/gnu-efi/dist/lib/dpath.c Sat Feb 04 16:14:27 2017 +0000
+++ b/sys/external/bsd/gnu-efi/dist/lib/dpath.c Sat Feb 04 18:08:29 2017 +0000
@@ -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 @@
     IN VOID                 *DevPath
     )
 {
-    IPv4_DEVICE_PATH     *IP;
+    IPv4_DEVICE_PATH     *IP __unused;
 
     IP = DevPath;
     CatPrint(Str, L"IPv4(not-done)");
@@ -689,7 +689,7 @@
     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 @@
     IN VOID                 *DevPath
     )
 {
-    INFINIBAND_DEVICE_PATH  *InfiniBand;
+    INFINIBAND_DEVICE_PATH  *InfiniBand __unused;
 
     InfiniBand = DevPath;
     CatPrint(Str, L"InfiniBand(not-done)");
diff -r ed47b1636326 -r 25be5511aec1 sys/external/bsd/gnu-efi/dist/lib/event.c
--- a/sys/external/bsd/gnu-efi/dist/lib/event.c Sat Feb 04 16:14:27 2017 +0000
+++ b/sys/external/bsd/gnu-efi/dist/lib/event.c Sat Feb 04 18:08:29 2017 +0000
@@ -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 @@
     OUT VOID                *Registration
     )
 {
+#ifdef EFI_DEBUG
     EFI_STATUS              Status;
+#else
+    EFI_STATUS              Status __unused;
+#endif
     EFI_EVENT               Event;
 
     //
diff -r ed47b1636326 -r 25be5511aec1 sys/external/bsd/gnu-efi/dist/lib/hand.c
--- a/sys/external/bsd/gnu-efi/dist/lib/hand.c  Sat Feb 04 16:14:27 2017 +0000
+++ b/sys/external/bsd/gnu-efi/dist/lib/hand.c  Sat Feb 04 18:08:29 2017 +0000
@@ -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 @@
     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;
diff -r ed47b1636326 -r 25be5511aec1 sys/external/bsd/gnu-efi/dist/lib/hw.c
--- a/sys/external/bsd/gnu-efi/dist/lib/hw.c    Sat Feb 04 16:14:27 2017 +0000
+++ b/sys/external/bsd/gnu-efi/dist/lib/hw.c    Sat Feb 04 18:08:29 2017 +0000
@@ -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 @@
         )
 {
     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 @@
         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 @@
         )
 {
     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 @@
         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));



Home | Main Index | Thread Index | Old Index