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 ShellPkg: Refine the fomat in INF/DEC files to follow spec. 2015-01-22 01:44:11 +00:00
UefiShellCommandLib ShellPkg: Enahance 'dh' command to add more protocols decoding support 2016-04-25 09:08:06 -07:00
UefiShellDebug1CommandsLib ShellPkg: Update smbiosview for latest Type 17 devices 2016-04-28 13:03:26 -07:00
UefiShellDriver1CommandsLib ShellPkg: Support connect a device handle recursively with '-r'. 2016-04-21 09:28:49 +08:00
UefiShellInstall1CommandsLib Revert "ShellPkg : Add UEFI_APPLICATION module type to UefiShellInstall1CommandsLib.inf" 2016-01-06 16:23:20 +00:00
UefiShellLevel1CommandsLib ShellPkg: don't call functions with side effects in ASSERT_EFI_ERROR() 2016-06-30 17:27:15 +02:00
UefiShellLevel2CommandsLib ShellPkg: Update Guid/Protocol usages in INF files. 2016-04-13 14:52:59 +08:00
UefiShellLevel3CommandsLib ShellPkg: Make 'alias' can display a single alias name. 2016-01-06 07:43:58 +00:00
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