From: "Daniel P. Berrange" <berrange@redhat.com>
To: qemu-devel@nongnu.org
Cc: famz@redhat.com, brak@vultr.com, f4bug@amsat.org
Subject: Re: [Qemu-devel] [PATCH v3 0/3] Improve websock response / error handling
Date: Fri, 8 Sep 2017 15:32:50 +0100 [thread overview]
Message-ID: <20170908143250.GI32645@redhat.com> (raw)
In-Reply-To: <150488090978.210.8841793665432135928@6d89bd104fc3>
On Fri, Sep 08, 2017 at 07:28:30AM -0700, no-reply@patchew.org wrote:
> /tmp/qemu-test/src/io/channel-websock.c: In function 'qio_channel_websock_date_str':
> /tmp/qemu-test/src/io/channel-websock.c:178:14: error: passing argument 1 of 'gmtime_r' from incompatible pointer type [-Werror=incompatible-pointer-types]
> gmtime_r(&tv.tv_sec, &tm);
> ^
> In file included from /tmp/qemu-test/src/include/qemu/osdep.h:76:0,
> from /tmp/qemu-test/src/io/channel-websock.c:21:
> /usr/x86_64-w64-mingw32/sys-root/mingw/include/time.h:272:34: note: expected 'const time_t * {aka const long long int *}' but argument is of type 'long int *'
> __forceinline struct tm *__cdecl gmtime_r(const time_t *_Time, struct tm *_Tm) {
> ^~~~~~~~
> cc1: all warnings being treated as errors
Ok that's interesting - Linux documents 'struct timeval' as containing
time_t type, but Mingw uses a plain 'long'. So much for standards :-(
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
prev parent reply other threads:[~2017-09-08 14:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-08 13:58 [Qemu-devel] [PATCH v3 0/3] Improve websock response / error handling Daniel P. Berrange
2017-09-08 13:58 ` [Qemu-devel] [PATCH v3 1/3] io: send proper HTTP response for websocket errors Daniel P. Berrange
2017-09-08 16:14 ` Philippe Mathieu-Daudé
2017-09-08 13:58 ` [Qemu-devel] [PATCH v3 2/3] io: include full error message in websocket handshake trace Daniel P. Berrange
2017-09-08 13:58 ` [Qemu-devel] [PATCH v3 3/3] io: use case insensitive check for Connection & Upgrade websock headers Daniel P. Berrange
2017-09-08 14:28 ` [Qemu-devel] [PATCH v3 0/3] Improve websock response / error handling no-reply
2017-09-08 14:32 ` Daniel P. Berrange [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170908143250.GI32645@redhat.com \
--to=berrange@redhat.com \
--cc=brak@vultr.com \
--cc=f4bug@amsat.org \
--cc=famz@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.