[Spice-devel] [PATCH spice-server v2 2/2] build: Disable some new added warnings

Christophe Fergeau cfergeau at redhat.com
Thu Nov 10 11:16:38 UTC 2016


On Thu, Nov 10, 2016 at 11:12:08AM +0000, Frediano Ziglio wrote:
> -Wshift-overflow cause an error to be detected in Glib headers.
> -Wformat-signedness and -Wnull-dereference probably could be
> fixed but currently they produce lot of errors.
> 
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  m4/spice-compile-warnings.m4 | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> Changes since v1:
> - use m4/spice-compile-warnings.m4 instead of changing
>   m4/manywarnings.m4.
> 
> diff --git a/m4/spice-compile-warnings.m4 b/m4/spice-compile-warnings.m4
> index b0e9554..bd08f3f 100644
> --- a/m4/spice-compile-warnings.m4
> +++ b/m4/spice-compile-warnings.m4
> @@ -61,8 +61,11 @@ AC_DEFUN([SPICE_COMPILE_WARNINGS],[
>      dontwarn="$dontwarn -Winline"
>      dontwarn="$dontwarn -Wbad-function-cast"
>      dontwarn="$dontwarn -Wshadow"
> +    dontwarn="$dontwarn -Wformat-signedness"
> +    dontwarn="$dontwarn -Wnull-dereference"
> +    dontwarn="$dontwarn -Wshift-overflow=2"


Acked-by: Christophe Fergeau <cfergeau at redhat.com>
but feel free to pick the comment I added before -Wshift-overflow in my
version.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20161110/00e03cc2/attachment.sig>


More information about the Spice-devel mailing list