Closed al3xtjames closed 8 years ago
From a pedantic point of view shifting negative numbers is undefined behavior in C so the correct fix is casting to an unsigned value. Thus -1 should be -1U (or -1ULL), this is a better fix that suppressing the warning.
Duplicate of https://github.com/tianocore/edk2/issues/49, closing.
Compilation of BaseTools (
make -C BaseTools
) fails with Xcode 7.3 (on OS X 10.11.4) due to negative shifts in FvLib.c.-Wno-shift-negative-value
could be added to the Makefile to suppress the errors. The negative shifts could also be replaced.