Projet

Général

Profil

0002-Add-an-enable-pedantic-option-to-prevent-enable-debu.patch

Benjamin Dauvergne, 24 juillet 2018 12:40

Télécharger (1,56 ko)

Voir les différences:

Subject: [PATCH 2/2] Add an --enable-pedantic option to prevent
 --enable-debugging to fail on warnings (fixes #24771)

 configure.ac | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
configure.ac
700 700
if test "z$enable_debugging" = "zyes" ; then
701 701
    enable_debugging=yes
702 702
    LASSO_DEFINES="$LASSO_DEFINES -DLASSO_DEBUG"
703
    CFLAGS="$CFLAGS -O0 -g -Wall -Wextra -Werror"
703
    CFLAGS="$CFLAGS -O0 -g -Wall -Wextra"
704 704
else
705 705
    enable_debugging=no
706 706
fi    
......
708 708
AC_MSG_RESULT($enable_debugging)
709 709
AC_SUBST(DEBUGGING)
710 710

  
711
dnl Pedantic debug
712
AC_MSG_CHECKING(for pedantic)
713
if test "z$enable_pedantic" = "zyes" ; then
714
    enable_pedantic=yes
715
    if test "z$enable_debugging" "!=" "zyes" ; then
716
	    LASSO_DEFINES="$LASSO_DEFINES -DLASSO_DEBUG"
717
	    CFLAGS="$CFLAGS -O0 -g -Wall -Wextra"
718
    fi
719
    CFLAGS="$CFLAGS -Werror"
720
else
721
    enable_pedantic=no
722
fi
723
AM_CONDITIONAL([PEDANTIC],[test "x$enable_pedantic" = "xyes"])
724
AC_MSG_RESULT($enable_pedandic)
725
AC_SUBST(PEDANTIC)
726

  
711 727
dnl Profiling 
712 728
AC_MSG_CHECKING(for profiling) 
713 729
AC_ARG_ENABLE(profiling,   [  --enable-profiling      enable profiling compilation flags (no)])
714
-