mirror of
https://github.com/intel/isa-l.git
synced 2025-12-08 03:57:19 +01:00
Address compiler warnings on ppc64le and s390x
igzip/igzip_icf_body.c:7:1: warning: type of 'gen_icf_map_lh1' does not match original declaration [-Wlto-type-mismatch]
7 | gen_icf_map_lh1(struct isal_zstream *, struct deflate_icf *, uint32_t);
| ^
igzip/igzip_base_aliases.c:177:1: note: return value type mismatch
177 | gen_icf_map_lh1(struct isal_zstream *stream, struct deflate_icf *matches_icf_lookup,
| ^
igzip/igzip_base_aliases.c:177:1: note: type 'void' should match type 'uint64_t'
igzip/igzip_base_aliases.c:177:1: note: 'gen_icf_map_lh1' was previously declared here
igzip/igzip_base_aliases.c:177:1: note: code may be misoptimized unless '-fno-strict-aliasing' is used
igzip/igzip_icf_body.c:9:1: warning: type of 'set_long_icf_fg' does not match original declaration [-Wlto-type-mismatch]
9 | set_long_icf_fg(uint8_t *, uint64_t, uint64_t, struct deflate_icf *);
| ^
igzip/igzip_base_aliases.c:170:1: note: type mismatch in parameter 2
170 | set_long_icf_fg(uint8_t *next_in, uint8_t *end_in, struct deflate_icf *match_lookup,
| ^
igzip/igzip_base_aliases.c:170:1: note: 'set_long_icf_fg' was previously declared here
igzip/igzip_base_aliases.c:170:1: note: code may be misoptimized unless '-fno-strict-aliasing' is used
igzip/igzip_base_aliases.c:62:1: warning: type of 'set_long_icf_fg_base' does not match original declaration [-Wlto-type-mismatch]
62 | set_long_icf_fg_base(uint8_t *next_in, uint8_t *end_in, struct deflate_icf *match_lookup,
| ^
igzip/igzip_icf_body.c:34:1: note: type mismatch in parameter 2
34 | set_long_icf_fg_base(uint8_t *next_in, uint64_t processed, uint64_t input_size,
| ^
igzip/igzip_icf_body.c:34:1: note: 'set_long_icf_fg_base' was previously declared here
igzip/igzip_icf_body.c:34:1: note: code may be misoptimized unless '-fno-strict-aliasing' is used
igzip/igzip_base_aliases.c:54:1: warning: type of 'adler32_base' does not match original declaration [-Wlto-type-mismatch]
54 | adler32_base(uint32_t init, const unsigned char *buf, uint64_t len);
| ^
igzip/adler32_base.c:34:1: note: type mismatch in parameter 3
34 | adler32_base(uint32_t adler32, uint8_t *start, uint32_t length)
| ^
igzip/adler32_base.c:34:1: note: type 'uint32_t' should match type 'uint64_t'
igzip/adler32_base.c:34:1: note: 'adler32_base' was previously declared here
igzip/adler32_base.c:34:1: note: code may be misoptimized unless '-fno-strict-aliasing' is used
Signed-off-by: Mattias Ellert <mattias.ellert@physics.uu.se>
This commit is contained in:
committed by
Pablo de Lara
parent
c387163fcb
commit
e3c2d243a1
@@ -31,7 +31,7 @@
|
|||||||
#include "igzip_checksums.h"
|
#include "igzip_checksums.h"
|
||||||
|
|
||||||
uint32_t
|
uint32_t
|
||||||
adler32_base(uint32_t adler32, uint8_t *start, uint32_t length)
|
adler32_base(uint32_t adler32, uint8_t *start, uint64_t length)
|
||||||
{
|
{
|
||||||
uint8_t *end, *next = start;
|
uint8_t *end, *next = start;
|
||||||
uint64_t A, B;
|
uint64_t A, B;
|
||||||
|
|||||||
@@ -59,9 +59,10 @@ extern void
|
|||||||
isal_deflate_hash_base(uint16_t *, uint32_t, uint32_t, uint8_t *, uint32_t);
|
isal_deflate_hash_base(uint16_t *, uint32_t, uint32_t, uint8_t *, uint32_t);
|
||||||
|
|
||||||
void
|
void
|
||||||
set_long_icf_fg_base(uint8_t *next_in, uint8_t *end_in, struct deflate_icf *match_lookup,
|
set_long_icf_fg_base(uint8_t *next_in, uint64_t processed, uint64_t input_size,
|
||||||
struct level_buf *level_buf);
|
struct deflate_icf *match_lookup);
|
||||||
void
|
|
||||||
|
uint64_t
|
||||||
gen_icf_map_h1_base(struct isal_zstream *stream, struct deflate_icf *matches_icf_lookup,
|
gen_icf_map_h1_base(struct isal_zstream *stream, struct deflate_icf *matches_icf_lookup,
|
||||||
uint64_t input_size);
|
uint64_t input_size);
|
||||||
|
|
||||||
@@ -167,15 +168,15 @@ isal_deflate_hash_lvl3(uint16_t *hash_table, uint32_t hash_mask, uint32_t curren
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
set_long_icf_fg(uint8_t *next_in, uint8_t *end_in, struct deflate_icf *match_lookup,
|
set_long_icf_fg(uint8_t *next_in, uint64_t processed, uint64_t input_size,
|
||||||
struct level_buf *level_buf)
|
struct deflate_icf *match_lookup)
|
||||||
{
|
{
|
||||||
set_long_icf_fg_base(next_in, end_in, match_lookup, level_buf);
|
set_long_icf_fg_base(next_in, processed, input_size, match_lookup);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
uint64_t
|
||||||
gen_icf_map_lh1(struct isal_zstream *stream, struct deflate_icf *matches_icf_lookup,
|
gen_icf_map_lh1(struct isal_zstream *stream, struct deflate_icf *matches_icf_lookup,
|
||||||
uint64_t input_size)
|
uint64_t input_size)
|
||||||
{
|
{
|
||||||
gen_icf_map_h1_base(stream, matches_icf_lookup, input_size);
|
return gen_icf_map_h1_base(stream, matches_icf_lookup, input_size);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#include "igzip_level_buf_structs.h"
|
#include "igzip_level_buf_structs.h"
|
||||||
|
|
||||||
extern uint64_t
|
extern uint64_t
|
||||||
gen_icf_map_lh1(struct isal_zstream *, struct deflate_icf *, uint32_t);
|
gen_icf_map_lh1(struct isal_zstream *, struct deflate_icf *, uint64_t);
|
||||||
extern void
|
extern void
|
||||||
set_long_icf_fg(uint8_t *, uint64_t, uint64_t, struct deflate_icf *);
|
set_long_icf_fg(uint8_t *, uint64_t, uint64_t, struct deflate_icf *);
|
||||||
extern void
|
extern void
|
||||||
|
|||||||
Reference in New Issue
Block a user