Fix warnings. - vtv-tools - virtual terminal video tools DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 121db131a875338f494bb1ab98e6dd7245cea1f6 DIR parent 7f7805f00a51a0940f5c00d31643e6c9565041c7 HTML Author: Troels Henriksen <athas@sigkill.dk> Date: Tue, 22 Aug 2023 17:54:07 +0200 Fix warnings. Diffstat: M src/vtv-from-ff.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- DIR diff --git a/src/vtv-from-ff.c b/src/vtv-from-ff.c @@ -55,7 +55,6 @@ int load_ff(FILE *f, uint32_t *width_out, uint32_t *height_out) { char magic[8]; - int ret = 1; uint16_t* argbs = NULL; uint32_t width = 0, height = 0; @@ -77,9 +76,9 @@ int load_ff(FILE *f, argbs = calloc(width*height*4, sizeof(uint16_t)); - for (int i = 0; i < width; i++) { - for (int j = 0; j < height; j++) { - for (int l = 0; l < 4; l++) { + for (unsigned int i = 0; i < width; i++) { + for (unsigned int j = 0; j < height; j++) { + for (unsigned int l = 0; l < 4; l++) { if (read_be_uint16(f, &argbs[i*(height*4)+(j*4)+l]) != 0) { goto bad; } @@ -166,6 +165,7 @@ int convert(FILE *ff, FILE *vtv) { free(fgs); free(bgs); free(chars); + return 0; } int main (int argc, char** argv) {