bug-wget
[Top][All Lists]
Advanced

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

Re: Wget2 warnings on 32-bit machine


From: Tim Rühsen
Subject: Re: Wget2 warnings on 32-bit machine
Date: Sun, 6 Dec 2020 16:14:08 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0

Thank you,

applied obvious fixes but only tested them on 64bit.

Regards, Tim

On 04.12.20 08:41, Jeffrey Walton wrote:
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);


Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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