[asterisk-commits] kpfleming: branch 1.6.2 r201092 - in /branches/1.6.2: ./ autoconf/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 16 14:28:35 CDT 2009


Author: kpfleming
Date: Tue Jun 16 14:28:32 2009
New Revision: 201092

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=201092
Log:
Merged revisions 201090 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r201090 | kpfleming | 2009-06-16 14:27:12 -0500 (Tue, 16 Jun 2009) | 5 lines
  
  Another minor fix to compiler attribute checking.
  
  Defaulting to 'static' for the function scope was bad... so remove it.
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/autoconf/ast_gcc_attribute.m4
    branches/1.6.2/configure
    branches/1.6.2/configure.ac

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/autoconf/ast_gcc_attribute.m4
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.2/autoconf/ast_gcc_attribute.m4?view=diff&rev=201092&r1=201091&r2=201092
==============================================================================
--- branches/1.6.2/autoconf/ast_gcc_attribute.m4 (original)
+++ branches/1.6.2/autoconf/ast_gcc_attribute.m4 Tue Jun 16 14:28:32 2009
@@ -7,17 +7,10 @@
 saved_CFLAGS="$CFLAGS"
 CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
 
-if test "x$3" = "x"
-then
-attribute_scope="static"
-else
-attribute_scope="$3"
-fi
-
 if test "x$2" = "x"
 then
 AC_COMPILE_IFELSE(
-	AC_LANG_PROGRAM([$attribute_scope void __attribute__(($1)) *test(void *muffin, ...) {return (void *) 0;}],
+	AC_LANG_PROGRAM([$3 void __attribute__(($1)) *test(void *muffin, ...) {return (void *) 0;}],
 			[]),
 	AC_MSG_RESULT(yes)
 	AC_DEFINE_UNQUOTED([HAVE_ATTRIBUTE_$1], 1, [Define to 1 if your GCC C compiler supports the '$1' attribute.]),
@@ -25,7 +18,7 @@
 )
 else
 AC_COMPILE_IFELSE(
-	AC_LANG_PROGRAM([$attribute_scope void __attribute__(($2)) *test(void *muffin, ...) {return (void *) 0;}],
+	AC_LANG_PROGRAM([$3 void __attribute__(($2)) *test(void *muffin, ...) {return (void *) 0;}],
 			[]),
 	AC_MSG_RESULT(yes)
 	AC_DEFINE_UNQUOTED([HAVE_ATTRIBUTE_$1], 1, [Define to 1 if your GCC C compiler supports the '$1' attribute.]),

Modified: branches/1.6.2/configure.ac
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.2/configure.ac?view=diff&rev=201092&r1=201091&r2=201092
==============================================================================
--- branches/1.6.2/configure.ac (original)
+++ branches/1.6.2/configure.ac Tue Jun 16 14:28:32 2009
@@ -513,7 +513,7 @@
 AST_GCC_ATTRIBUTE(sentinel)
 AST_GCC_ATTRIBUTE(warn_unused_result)
 AST_GCC_ATTRIBUTE(weak)
-AST_GCC_ATTRIBUTE(weak_import, , "")
+AST_GCC_ATTRIBUTE(weak_import)
 AST_GCC_ATTRIBUTE(alias, [alias("foo")])
 
 AC_MSG_CHECKING(for -ffunction-sections support)




More information about the asterisk-commits mailing list