diff --git a/components/libarchive/lib/archive_write_set_format_7zip.c b/components/libarchive/lib/archive_write_set_format_7zip.c index 7c95ef93b..ab536cef0 100644 --- a/components/libarchive/lib/archive_write_set_format_7zip.c +++ b/components/libarchive/lib/archive_write_set_format_7zip.c @@ -310,11 +310,13 @@ static int _7z_compression_init_encoder(struct archive_write *, unsigned, int); static int compression_init_encoder_zstd(struct archive *, struct la_zstream *, int, int); +#ifdef UNUSED #if defined(HAVE_ZSTD_H) static int compression_code_zstd(struct archive *, struct la_zstream *, enum la_zaction); static int compression_end_zstd(struct archive *, struct la_zstream *); #endif +#endif /* UNUSED */ static int compression_code(struct archive *, struct la_zstream *, enum la_zaction); static int compression_end(struct archive *, diff --git a/components/liblzma/lib/check/crc32_tablegen.c b/components/liblzma/lib/check/crc32_tablegen.c index 31a4d2751..af206bf47 100755 --- a/components/liblzma/lib/check/crc32_tablegen.c +++ b/components/liblzma/lib/check/crc32_tablegen.c @@ -79,6 +79,7 @@ print_crc32_table(void) } +#ifdef UNUSED static void print_lz_table(void) { @@ -100,6 +101,7 @@ print_lz_table(void) return; } +#endif /* UNUSED */ int diff --git a/components/liblzma/lib/lzma/lzma_decoder.c b/components/liblzma/lib/lzma/lzma_decoder.c index 9979bb426..d7e6d78e2 100755 --- a/components/liblzma/lib/lzma/lzma_decoder.c +++ b/components/liblzma/lib/lzma/lzma_decoder.c @@ -33,6 +33,7 @@ #define len_decode(target, ld, pos_state, seq) \ do { \ + [[fallthrough]]; \ case seq ## _CHOICE: \ rc_if_0(ld.choice, seq ## _CHOICE) { \ rc_update_0(ld.choice); \ @@ -41,6 +42,7 @@ case seq ## _CHOICE: \ target = MATCH_LEN_MIN; \ } else { \ rc_update_1(ld.choice); \ + [[fallthrough]]; \ case seq ## _CHOICE2: \ rc_if_0(ld.choice2, seq ## _CHOICE2) { \ rc_update_0(ld.choice2); \ @@ -56,6 +58,7 @@ case seq ## _CHOICE2: \ } \ } \ symbol = 1; \ + [[fallthrough]]; \ case seq ## _BITTREE: \ do { \ rc_bit(probs[symbol], , , seq ## _BITTREE); \ @@ -346,6 +349,7 @@ lzma_decode(lzma_coder *restrict coder, lzma_dict *restrict dictptr, // since we already calculated it when setting up the local // variables. pos_state = dict.pos & pos_mask; + [[fallthrough]]; case SEQ_NORMALIZE: case SEQ_IS_MATCH: @@ -483,6 +487,7 @@ lzma_decode(lzma_coder *restrict coder, lzma_dict *restrict dictptr, // output history. rc_update_1(coder->is_match[state][pos_state]); + [[fallthrough]]; case SEQ_IS_REP: rc_if_0(coder->is_rep[state], SEQ_IS_REP) { @@ -687,6 +692,7 @@ lzma_decode(lzma_coder *restrict coder, lzma_dict *restrict dictptr, ret = LZMA_DATA_ERROR; goto out; } + [[fallthrough]]; case SEQ_IS_REP0: rc_if_0(coder->is_rep0[state], SEQ_IS_REP0) { @@ -718,6 +724,7 @@ lzma_decode(lzma_coder *restrict coder, lzma_dict *restrict dictptr, } else { rc_update_1(coder->is_rep0[state]); + [[fallthrough]]; case SEQ_IS_REP1: // The distance is rep1, rep2 or rep3. Once @@ -733,6 +740,7 @@ lzma_decode(lzma_coder *restrict coder, lzma_dict *restrict dictptr, } else { rc_update_1(coder->is_rep1[state]); + [[fallthrough]]; case SEQ_IS_REP2: rc_if_0(coder->is_rep2[state], SEQ_IS_REP2) { @@ -772,6 +780,7 @@ lzma_decode(lzma_coder *restrict coder, lzma_dict *restrict dictptr, // to trigger the algorithm to set len outside this range. assert(len >= MATCH_LEN_MIN); assert(len <= MATCH_LEN_MAX); + [[fallthrough]]; case SEQ_COPY: // Repeat len bytes from distance of rep0. diff --git a/components_pc/mongoose/mongoose.c b/components_pc/mongoose/mongoose.c index be61d4fe8..044a06b0f 100644 --- a/components_pc/mongoose/mongoose.c +++ b/components_pc/mongoose/mongoose.c @@ -18,6 +18,7 @@ // SPDX-License-Identifier: GPL-2.0-only or commercial #include "mongoose.h" +#include "psa/crypto.h" #ifdef MG_ENABLE_LINES #line 1 "src/base64.c" @@ -17023,4 +17024,4 @@ static bool w5500_up(struct mg_tcpip_if *ifp) { struct mg_tcpip_driver mg_tcpip_driver_w5500 = {w5500_init, w5500_tx, w5500_rx, w5500_up}; -#endif \ No newline at end of file +#endif