subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1527773 - /subversion/trunk/subversion/include/svn_types.h
Date Mon, 30 Sep 2013 20:48:34 GMT
Author: brane
Date: Mon Sep 30 20:48:33 2013
New Revision: 1527773

URL: http://svn.apache.org/r1527773
Log:
Clang does not understand __attribute__((warning)), so don't use
it to tag experimental functions.

* subversion/include/svn_types.h (SVN_EXPERIMENTAL): Skip the GCC definition
   of this macro when compiling with clang.

Modified:
    subversion/trunk/subversion/include/svn_types.h

Modified: subversion/trunk/subversion/include/svn_types.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/include/svn_types.h?rev=1527773&r1=1527772&r2=1527773&view=diff
==============================================================================
--- subversion/trunk/subversion/include/svn_types.h (original)
+++ subversion/trunk/subversion/include/svn_types.h Mon Sep 30 20:48:33 2013
@@ -70,7 +70,8 @@ extern "C" {
  */
 #ifndef SVN_EXPERIMENTAL
 # if !defined(SWIGPERL) && !defined(SWIGPYTHON) && !defined(SWIGRUBY)
-#  if defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__==3 && __GNUC_MINOR__>=1))
+#  if !defined(__clang__) && defined(__GNUC__) \
+      && (__GNUC__ >= 4 || (__GNUC__==3 && __GNUC_MINOR__>=1))
 #   define SVN_EXPERIMENTAL __attribute__((warning("experimental function used")))
 #  elif defined(_MSC_VER) && _MSC_VER >= 1300
 #   define SVN_EXPERIMENTAL __declspec(deprecated("experimental function used"))



Mime
View raw message