Skip to content

Commit c9eff8d

Browse files
Mingli Yunmoinvaz
authored andcommitted
crypt.h: Remove register keyword
Fixes: | In file included from /buildarea/tmp/work/core2-64-poky-linux/minizip-ng/4.0.8/git/test/test_compat.cc:17: | /buildarea/tmp/work/core2-64-poky-linux/minizip-ng/4.0.8/git/compat/crypt.h:62:9: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] | 62 | register int keyshift = (int)((*(pkeys + 1)) >> 24); | | ^~~~~~~~ | 1 error generated. Signed-off-by: Mingli Yu <[email protected]>
1 parent 4f571d6 commit c9eff8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/crypt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static int update_keys(unsigned long *pkeys, const z_crc_t *pcrc_32_tab, int c)
5959
(*(pkeys + 1)) += (*(pkeys + 0)) & 0xff;
6060
(*(pkeys + 1)) = (*(pkeys + 1)) * 134775813L + 1;
6161
{
62-
register int keyshift = (int)((*(pkeys + 1)) >> 24);
62+
int keyshift = (int)((*(pkeys + 1)) >> 24);
6363
(*(pkeys + 2)) = CRC32((*(pkeys + 2)), keyshift);
6464
}
6565
return c;

0 commit comments

Comments
 (0)