Hi Michael,

for me it looks like an ASSERT(TRUE) when no GUID comparison matched.
It actually produces a more readable debug message rather than "TRUE" which 
allows you to find the actual ASSERT faster.

Best Regards,
  Peter

-----Original Message-----
From: edk2-devel [mailto:[email protected]] On Behalf Of Michael 
Zimmermann
Sent: Wednesday, June 29, 2016 9:42 AM
To: [email protected]
Cc: Jaben Carsey; Shumin Qiu
Subject: [edk2] weird ShellPkg line

Hi,

I found this weird line in ShellPkg(which also throws a warning in GCC6).
What does it do?

ASSERT((*HandleType)[HandleIndex] == (*HandleType)[HandleIndex]);

https://github.com/tianocore/edk2/blob/master/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c#L2465


Thanks
Michael
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to