[Spice-devel] [PATCH 2/2] Eliminate signed/unsigned warning
Christophe Fergeau
cfergeau at redhat.com
Mon Feb 19 14:19:08 UTC 2018
On Mon, Feb 19, 2018 at 03:06:40PM +0100, Christophe de Dinechin wrote:
>
>
> > On 19 Feb 2018, at 13:24, Christophe Fergeau <cfergeau at redhat.com> wrote:
> >
> > On Fri, Feb 16, 2018 at 04:23:06PM +0100, Christophe de Dinechin wrote:
> >> From: Christophe de Dinechin <dinechin at redhat.com>
> >>
> >> Without this, GCC complains about signed / unsigned comparisons:
> >>
> >> mjpeg-fallback.cpp:121:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
> >> if (win_info.width != last_width || win_info.height != last_height) {
> >> ~~~~~~~~~~~~~~~^~~~~~~~~~~~~
> >
> > Are you getting this using the default CXXFLAGS?
>
> No, this was a side effect of tracking some other warning.
Would be nice to mention this in the commit log then, while we want the
build with the default flags to be warning-free, fixing additional
warnings will definitely be considered on a case by case basis.
>
>
> > Here I seem to be getting -Wno-sign-compare by default.
>
> Why is this silenced?
This probably was not intentionally silenced, but enabling it would be a
good complement to this patch if this warning is deemed useful...
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20180219/f10183f0/attachment.sig>
More information about the Spice-devel
mailing list