audk/ShellPkg/Library
Laszlo Ersek 42cb906852 ShellPkg: UefiHandleParsingLib: remove tautological comparison
The code being removed in this patch dates back to git commit a405b86d27
(Sep 14, 2010; "udk2010.up2.shell initial release."). The condition always
evaluates to true, and it breaks DEBUG builds of ArmVirtPkg with gcc-6.1:

  ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c:
    In function 'ParseHandleDatabaseByRelationshipWithType':
  ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c:2465:76:
    error: self-comparison always evaluates to true
    [-Werror=tautological-compare]
         ASSERT((*HandleType)[HandleIndex] == (*HandleType)[HandleIndex]);

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Michael Zimmermann <sigmaepsilon92@gmail.com>
Reported-by: Gerd Hoffmann <kraxel@redhat.com>
Reported-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
Suggested-by: Jaben Carsey <jaben.carsey@intel.com>
Ref: http://thread.gmane.org/gmane.comp.bios.edk2.devel/13794/focus=13939
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
2016-06-30 23:14:29 +02:00
..
UefiDpLib ShellPkg: Replace UnicodeStrToAsciiStr/AsciiStrToUnicodeStr 2016-06-21 12:46:26 +08:00
UefiHandleParsingLib ShellPkg: UefiHandleParsingLib: remove tautological comparison 2016-06-30 23:14:29 +02:00
UefiShellBcfgCommandLib ShellPkg/Bcfg: Add support for 'addp' command. 2016-05-20 14:16:49 +08:00
UefiShellCEntryLib
UefiShellCommandLib
UefiShellDebug1CommandsLib ShellPkg: Update smbiosview for latest Type 17 devices 2016-04-28 13:03:26 -07:00
UefiShellDriver1CommandsLib
UefiShellInstall1CommandsLib
UefiShellLevel1CommandsLib ShellPkg: don't call functions with side effects in ASSERT_EFI_ERROR() 2016-06-30 17:27:15 +02:00
UefiShellLevel2CommandsLib
UefiShellLevel3CommandsLib
UefiShellLib ShellPkg: don't call functions with side effects in ASSERT_EFI_ERROR() 2016-06-30 17:27:15 +02:00
UefiShellNetwork1CommandsLib ShellPkg: Enhance ping to select the interface automatically 2016-04-29 11:32:17 +08:00
UefiShellNetwork2CommandsLib ShellPkg: Enhance ping6 to select the interface automatically 2016-04-29 11:32:35 +08:00
UefiShellTftpCommandLib ShellPkg: Replace UnicodeStrToAsciiStr/AsciiStrToUnicodeStr 2016-06-21 12:46:26 +08:00