From dedf0129834048b29b1fbc7789d04ee8893b255d Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 26 Oct 2020 19:36:08 -0700 Subject: [PATCH] spv: Avoid some compiler warnings on mingw. The mingw compiler warned about these, and it's harmless to avoid them. --- src/output/spv/spv-legacy-data.c | 2 +- src/output/spv/spv-light-decoder.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/output/spv/spv-legacy-data.c b/src/output/spv/spv-legacy-data.c index 703d0b1e1e..4e3d72c4a4 100644 --- a/src/output/spv/spv-legacy-data.c +++ b/src/output/spv/spv-legacy-data.c @@ -360,7 +360,7 @@ spv_legacy_data_decode (const uint8_t *in, size_t size, struct spv_data *out) source->n_values = md->n_values; source->vars = xcalloc (md->n_variables, sizeof *source->vars); - size_t end; + size_t end = -1; error = decode_data (in, size, md->data_offset, source, &end); if (error) goto error; diff --git a/src/output/spv/spv-light-decoder.c b/src/output/spv/spv-light-decoder.c index 2cc7f63221..ebac2a5635 100644 --- a/src/output/spv/spv-light-decoder.c +++ b/src/output/spv/spv-light-decoder.c @@ -377,7 +377,7 @@ decode_spvlb_value (const struct pivot_table *table, break; default: - assert (0); + abort (); } if (vm) -- 2.30.2