bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wget2 warnings on 32-bit machine


From: Jeffrey Walton
Subject: Wget2 warnings on 32-bit machine
Date: Fri, 4 Dec 2020 02:41:32 -0500

Hi Everyone/Tim,

I'm testing on 32-bit hardware. It's an old VIA Padlock machine
running Peppermint, which is based on Ubuntu. There are a few type
related warnings that might be of interest.

Jeff

==========
http.c: In function 'wget_http_get_response_cb':
http.c:1180:20: warning: format '%lX' expects argument of type 'long
unsigned int', but argument 2 has type 'size_t {aka unsigned int}'
[-Wformat=]
     error_printf(_("Chunk size overflow: %lX\n"), chunk_size);
                    ^
private.h:42:28: note: in definition of macro '_'
 # define _(STRING) gettext(STRING)

==========
ssl_openssl.c: In function 'ssl_resume_session':
ssl_openssl.c:1248:11: warning: passing argument 4 of
'wget_tls_session_get' from incompatible pointer type
[-Wincompatible-pointer-types]
    &sess, &sesslen) == 0
           ^
In file included from ssl_openssl.c:56:0:
../include/wget/wget.h:1569:2: note: expected 'size_t * {aka unsigned
int *}' but argument is of type 'long unsigned int *'
  wget_tls_session_get(const wget_tls_session_db *tls_session_db,
const char *host, void **data, size_t *size);

==========
stats_site.c: In function 'print_csv_entry':
stats_site.c:206:71: warning: format '%ld' expects argument of type
'long int', but argument 15 has type 'int64_t {aka long long int}'
[-Wformat=]
  wget_fprintf(_fp, "%llu,%llu,%s,%d,%d,%d,%lld,%lld,%lld,%lld,%d,%d,%ld,%s\n",
                                                                     ~~^
                                                                     %lld
stats_site.c:209:73:
   doc->initial_response_duration, doc->encoding,
doc->signature_status, doc->last_modified, doc->mime_type);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]