]> git.proxmox.com Git - mirror_edk2.git/commitdiff
StdLib: Fix IA32 and X64 build issues.
authorDaryl McDaniel <daryl.mcdaniel@intel.com>
Tue, 10 Sep 2013 21:53:28 +0000 (21:53 +0000)
committerdarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 10 Sep 2013 21:53:28 +0000 (21:53 +0000)
Building with the Intel Compiler V11 produces the following error:
StdLib\LibC\Containers\Queues\Fifo.c(223): error #186: pointless comparison of unsigned integer with zero
    assert(Count >= 0);

Deleted the assert.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Daryl McDaniel <daryl.mcdaniel@intel.com>
Reviewed by: erik.c.bjorge@intel.com

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14648 6f19259b-4bc3-4df7-8a09-765794883524

StdLib/LibC/Containers/Queues/Fifo.c

index 347ac02fd2e2a3ac2f2ca4d7223234c9ed5041a3..996498e1d9038005877a5ced3058425d11b78387 100644 (file)
@@ -220,7 +220,6 @@ FIFO_Enqueue (
 \r
   assert(Self != NULL);\r
   assert(pElement != NULL);\r
-  assert(Count >= 0);\r
 \r
   if(FIFO_IsFull(Self)) {\r
     Count = 0;\r