]> git.proxmox.com Git - mirror_edk2.git/commit - StdLib/EfiSocketLib/Ip4.c
StdLib: Fix GCC warnings/errors caused by variables being set but not used.
authorOlivier Martin <olivier.martin@arm.com>
Thu, 30 Oct 2014 01:05:22 +0000 (01:05 +0000)
committerdarylm503 <darylm503@Edk2>
Thu, 30 Oct 2014 01:05:22 +0000 (01:05 +0000)
commit0e565888ee40264bfad5a700e0d62f4824d81c18
treecc2842df141ff68b559f8faaf6182dbb49ed0dc8
parentb07ae3d6073f9ec69ae4316b0832fc96325c01d4
StdLib: Fix GCC warnings/errors caused by variables being set but not used.

Removed variables that had no effect on code behavior.

Fifo.c::FIFO_Dequeue: Replaced instances of "Self->ElementSize" with preexisting variable "SizeOfElement".

IIOutilities.c::IIO_GetInChar: Fixed variable of wrong, but compatible, type and made updating of housekeeping variables dependent upon successful completion of reading from the buffer.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed by: Daryl McDaniel <daryl.mcdaniel@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16276 6f19259b-4bc3-4df7-8a09-765794883524
StdLib/BsdSocketLib/getnameinfo.c
StdLib/BsdSocketLib/res_comp.c
StdLib/BsdSocketLib/res_mkupdate.c
StdLib/EfiSocketLib/Ip4.c
StdLib/EfiSocketLib/Tcp4.c
StdLib/EfiSocketLib/Tcp6.c
StdLib/LibC/Containers/Queues/Fifo.c
StdLib/LibC/Uefi/InteractiveIO/IIOutilities.c
StdLib/LibC/Uefi/InteractiveIO/IIOwrite.c
StdLib/LibC/Uefi/InteractiveIO/NonCanonRead.c
StdLib/LibC/Uefi/writev.c