]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/LibC/Uefi/InteractiveIO/NonCanonRead.c
StdLib: Fix GCC warnings/errors caused by variables being set but not used.
[mirror_edk2.git] / StdLib / LibC / Uefi / InteractiveIO / NonCanonRead.c
index bcae9c82399e657a364d002b8374678a7ce7474c..aab81cdaa8ef500b9b30a6879aeb585521550c02 100644 (file)
@@ -37,7 +37,6 @@ IIO_NonCanonRead (
   cIIO           *This;\r
   cFIFO          *InBuf;\r
   struct termios *Termio;\r
-  EFI_STATUS      Status;\r
   ssize_t         NumRead;\r
   cc_t            tioMin;\r
   cc_t            tioTime;\r
@@ -74,7 +73,7 @@ IIO_NonCanonRead (
       if(InBuf->IsEmpty(InBuf)) {\r
         NumRead = filp->f_ops->fo_read(filp, &filp->f_offset, sizeof(wchar_t), &InChar);\r
         if(NumRead > 0) {\r
-          Status = InBuf->Write(InBuf, &InChar, 1);  // Buffer the character\r
+          (void) InBuf->Write(InBuf, &InChar, 1);  // Buffer the character\r
         }\r
       }\r
   //    break;\r