Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 8af71632d6552e637a2ce29c579c70ccc562ba7b
https://github.com/tianocore/edk2/commit/8af71632d6552e637a2ce29c579c70ccc562ba7b
Author: Sudeep Holla <[email protected]>
Date: 2024-10-24 (Thu, 24 Oct 2024)
Changed paths:
M DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlResourceDataCodeGen.c
Log Message:
-----------
DynamicTablesPkg: Drop the unnecessary comparision of UINT8 max value
Clang build breaks with the following error:
|
DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlResourceDataCodeGen.c:1441:20:
| error: result of comparison of constant 256 with expression of type
'UINT8'
| (aka 'unsigned char') is always false
[-Werror,-Wtautological-constant-out-of-range-compare]
| 1441 | (AccessSize > 256)) ||
| | ~~~~~~~~~~ ^ ~~~
| 1 error generated.
AccessSize is UINT8 and the maximum value for UINT8 is 255, so the
comparision is unnecessary. Drop the check to fix the build.
Signed-off-by: Sudeep Holla <[email protected]>
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits