From: Ben Pfaff Date: Tue, 27 Oct 2020 02:36:08 +0000 (-0700) Subject: spv: Avoid some compiler warnings on mingw. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dedf0129834048b29b1fbc7789d04ee8893b255d;p=pspp spv: Avoid some compiler warnings on mingw. The mingw compiler warned about these, and it's harmless to avoid them. --- 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)