From b24da370749d8665d3e974cee4ed49467478ab3c Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Tue, 20 Apr 2021 18:19:44 +0100 Subject: [PATCH] build: Disable default -Werror if source is a git repository By default configure script detected if source directory is a git repository and by default enable -Werror option. This normally detects that you are developing but some build packagers (like rpm spec with git_am option) uses git to manage additional patches on top of source making the detection fail and causing the build to fail. Build packagers should not use -Werror. Signed-off-by: Frediano Ziglio --- m4/spice-compile-warnings.m4 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/m4/spice-compile-warnings.m4 b/m4/spice-compile-warnings.m4 index d87203d7..a2fcbabf 100644 --- a/m4/spice-compile-warnings.m4 +++ b/m4/spice-compile-warnings.m4 @@ -10,12 +10,7 @@ AC_DEFUN([SPICE_COMPILE_WARNINGS],[ AC_ARG_ENABLE([werror], AS_HELP_STRING([--enable-werror], [Use -Werror (if supported)]), [set_werror="$enableval"], - [if test -d $srcdir/.git; then - is_git_version=true - set_werror=yes - else - set_werror=no - fi]) + [set_werror=no]) # List of warnings that are not relevant / wanted