diff --git a/common/legic_prng.c b/common/legic_prng.c index 8646f55a9..1447d3b1b 100644 --- a/common/legic_prng.c +++ b/common/legic_prng.c @@ -46,7 +46,7 @@ void legic_prng_forward(int count) { } } -uint8_t legic_prng_get_bit() { +uint8_t legic_prng_get_bit(void) { uint8_t idx = 7 - ((lfsr.a & 4) | (lfsr.a >> 2 & 2) | (lfsr.a >> 4 & 1)); return lfsr.b >> idx & 1; } diff --git a/common/zlib/Makefile b/common/zlib/Makefile index baec1eb1e..2f68e0ea2 100644 --- a/common/zlib/Makefile +++ b/common/zlib/Makefile @@ -1,7 +1,7 @@ MYSRCPATHS = ../../common/zlib MYSRCS = deflate.c adler32.c trees.c zutil.c inflate.c inffast.c inftrees.c MYINCLUDES = -I../../common/zlib -MYCFLAGS = -Wno-strict-prototypes -Wno-missing-prototypes -Wno-missing-declarations +MYCFLAGS = -Wno-strict-prototypes -Wno-missing-prototypes -Wno-missing-declarations -Wno-old-style-definition -Wno-implicit-fallthrough MYDEFS = -DZ_SOLO -DNO_GZIP -DZLIB_PM3_TUNED #-DDEBUG -Dverbose=1