diff --git a/src/init.c b/src/init.c index 87fbc9b2..48859aae 100644 --- a/src/init.c +++ b/src/init.c @@ -957,7 +957,7 @@ static bool simple_atof (const char *, const char *, double *); static int -cmd_boolean_internal (const char *com, const char *val, void *place) +cmd_boolean_internal (const char *com _GL_UNUSED, const char *val, void *place _GL_UNUSED) { if (CMP2 (val, 'o', 'n') || CMP3 (val, 'y', 'e', 's') || CMP1 (val, '1')) /* "on", "yes" and "1" mean true. */ diff --git a/src/options.h b/src/options.h index e378fd72..5cd5fb11 100644 --- a/src/options.h +++ b/src/options.h @@ -33,7 +33,7 @@ enum CHECK_CERT_MODES { CHECK_CERT_OFF, CHECK_CERT_ON, - CHECK_CERT_QUIET, + CHECK_CERT_QUIET }; struct options diff --git a/src/progress.c b/src/progress.c index 861f5ced..9b44ea2a 100644 --- a/src/progress.c +++ b/src/progress.c @@ -900,7 +900,6 @@ get_eta (int *bcd) static void create_image (struct bar_progress *bp, double dl_total_time, bool done) { - memset (bp->buffer, '\0', BUF_LEN); const int MAX_FILENAME_COLS = bp->width / 4; char *p = bp->buffer; wgint size = bp->initial_length + bp->count; @@ -945,6 +944,8 @@ create_image (struct bar_progress *bp, double dl_total_time, bool done) int cols_diff; const char *down_size; + memset (bp->buffer, '\0', BUF_LEN); + if (progress_size < 5) progress_size = 0;