Skip to content

Commit

Permalink
Fix -Wstrict-prototypes warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fredgan committed Jun 14, 2022
1 parent 21767c6 commit 9472a4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crc32.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@
/* Local functions. */
local z_crc_t multmodp OF((z_crc_t a, z_crc_t b));
local z_crc_t x2nmodp OF((z_off64_t n, unsigned k));
local z_word_t byte_swap OF((z_word_t word));
local z_crc_t crc_word OF((z_word_t data));
local z_word_t crc_word_big OF((z_word_t data));

/* If available, use the ARM processor CRC32 instruction. */
#if defined(__aarch64__) && defined(__ARM_FEATURE_CRC32) && W == 8
Expand Down
1 change: 1 addition & 0 deletions zutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
(!defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0)
ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
ZEXTERN uLong ZEXPORT crc32_combine_gen64 OF((z_off_t));
#endif

/* common defaults */
Expand Down

0 comments on commit 9472a4c

Please sign in to comment.