[Spice-commits] m4/spice-compile-warnings.m4

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 21 08:14:25 UTC 2021


 m4/spice-compile-warnings.m4 |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit b24da370749d8665d3e974cee4ed49467478ab3c
Author: Frediano Ziglio <freddy77 at gmail.com>
Date:   Tue Apr 20 18:19:44 2021 +0100

    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 <freddy77 at gmail.com>

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
 


More information about the Spice-commits mailing list