[asterisk-commits] file: branch 1.6.0 r115278 - in /branches/1.6.0: ./ acinclude.m4 configure
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat May 3 20:47:12 CDT 2008
Author: file
Date: Sat May 3 20:47:11 2008
New Revision: 115278
URL: http://svn.digium.com/view/asterisk?view=rev&rev=115278
Log:
Merged revisions 115277 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r115277 | file | 2008-05-03 22:45:21 -0300 (Sat, 03 May 2008) | 10 lines
Merged revisions 115276 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r115276 | file | 2008-05-03 22:43:26 -0300 (Sat, 03 May 2008) | 2 lines
Treat warnings as errors when checking if a GCC attribute exists. We have to do this as GCC will just ignore the attribute and pop up a warning, it won't actually fail to compile.
........
................
Modified:
branches/1.6.0/ (props changed)
branches/1.6.0/acinclude.m4
branches/1.6.0/configure
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/acinclude.m4
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/acinclude.m4?view=diff&rev=115278&r1=115277&r2=115278
==============================================================================
--- branches/1.6.0/acinclude.m4 (original)
+++ branches/1.6.0/acinclude.m4 Sat May 3 20:47:11 2008
@@ -7,13 +7,17 @@
AC_DEFUN([AST_GCC_ATTRIBUTE],
[
AC_MSG_CHECKING(for compiler 'attribute $1' support)
+saved_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS -Werror"
AC_COMPILE_IFELSE(
AC_LANG_PROGRAM([static int __attribute__(($1)) test(void) {}],
[]),
AC_MSG_RESULT(yes)
AC_DEFINE_UNQUOTED([HAVE_ATTRIBUTE_$1], 1, [Define to 1 if your GCC C compiler supports the '$1' attribute.]),
AC_MSG_RESULT(no))
-])
+]
+CFLAGS="$saved_CFLAGS"
+)
# Helper function to setup variables for a package.
# $1 -> the package name. Used in configure.ac and also as a prefix
More information about the asterisk-commits
mailing list