mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Eliminate more compiler warnings
* src/options.h (CHECK_CERT_MODES): Remove C99 style comma after last value * src/progress.c (create_image): Do not mix statements and declarations * src/init.c (cmd_boolean_internal): Mark unused parameters
This commit is contained in:
parent
44937634a3
commit
636a5f9a1c
@ -957,7 +957,7 @@ static bool simple_atof (const char *, const char *, double *);
|
|||||||
|
|
||||||
|
|
||||||
static int
|
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'))
|
if (CMP2 (val, 'o', 'n') || CMP3 (val, 'y', 'e', 's') || CMP1 (val, '1'))
|
||||||
/* "on", "yes" and "1" mean true. */
|
/* "on", "yes" and "1" mean true. */
|
||||||
|
@ -33,7 +33,7 @@ enum CHECK_CERT_MODES
|
|||||||
{
|
{
|
||||||
CHECK_CERT_OFF,
|
CHECK_CERT_OFF,
|
||||||
CHECK_CERT_ON,
|
CHECK_CERT_ON,
|
||||||
CHECK_CERT_QUIET,
|
CHECK_CERT_QUIET
|
||||||
};
|
};
|
||||||
|
|
||||||
struct options
|
struct options
|
||||||
|
@ -900,7 +900,6 @@ get_eta (int *bcd)
|
|||||||
static void
|
static void
|
||||||
create_image (struct bar_progress *bp, double dl_total_time, bool done)
|
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;
|
const int MAX_FILENAME_COLS = bp->width / 4;
|
||||||
char *p = bp->buffer;
|
char *p = bp->buffer;
|
||||||
wgint size = bp->initial_length + bp->count;
|
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;
|
int cols_diff;
|
||||||
const char *down_size;
|
const char *down_size;
|
||||||
|
|
||||||
|
memset (bp->buffer, '\0', BUF_LEN);
|
||||||
|
|
||||||
if (progress_size < 5)
|
if (progress_size < 5)
|
||||||
progress_size = 0;
|
progress_size = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user