lcp / mokutil

The utility to manipulate machine owner keys
GNU General Public License v3.0
67 stars 37 forks source link

cast-align werror on mips #28

Closed James6xie closed 4 years ago

James6xie commented 4 years ago

mokutil.c: In function 'sb_state': mokutil.c:1822:21: error: cast increases required alignment of target type [-Werror=cast-align] state = (int32_t)(uint32_t )data; ^ mokutil.c:1824:21: error: cast increases required alignment of target type [-Werror=cast-align] state = (int32_t)(uint16_t )data; ^ cc1: all warnings being treated as errors

andypost commented 4 years ago

Getting the same for Alpinelinux package (only 32bits - armv7, armhf,x86)

mokutil.c: In function 'generate_pw_hash':
mokutil.c:2038:16: error: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Werror=sign-compare]
 2038 |  if (salt_size > settings_len - (next - settings)) {
      |                ^
mv -f .deps/mokutil-password-crypt.Tpo .deps/mokutil-password-crypt.Po