[Spice-devel] [PATCH spice-gtk 6/7] build-sys: -Wshift-overflow=2
Pavel Grunt
pgrunt at redhat.com
Wed Jun 1 06:43:45 UTC 2016
On Mon, 2016-05-30 at 19:31 +0200, Marc-André Lureau wrote:
> manywarnings.m4 update will bring new flags that fail with some
> glib/gst headers.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau at gmail.com>
Acked-by: Pavel Grunt <pgrunt at redhat.com>
> ---
> configure.ac | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index 8f1e91b..3fe8055 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -581,7 +581,10 @@ SPICE_CHECK_LZ4
> dnl
> ===========================================================================
> dnl check compiler flags
>
> -SPICE_COMPILE_WARNINGS
> +# some glib/gstreamer enums use 1 << 31
> +dontwarn="-Wshift-overflow=2"
> +
> +SPICE_COMPILE_WARNINGS([$dontwarn])
>
> SPICE_CFLAGS="$SPICE_CFLAGS $WARN_CFLAGS"
>
More information about the Spice-devel
mailing list