subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1882128 - /subversion/trunk/subversion/libsvn_subr/apr_escape.c
Date Tue, 29 Sep 2020 14:19:42 GMT
Author: brane
Date: Tue Sep 29 14:19:42 2020
New Revision: 1882128

URL: http://svn.apache.org/viewvc?rev=1882128&view=rev
Log:
Silence OSX ranlib warnings about object files with no symbols.

* subversion/libsvn_subr/apr_escape.c
  (svn__fake__apr_escape): Add a dummy symbol to an otherwise
   empty compilation unit.

Modified:
    subversion/trunk/subversion/libsvn_subr/apr_escape.c

Modified: subversion/trunk/subversion/libsvn_subr/apr_escape.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/apr_escape.c?rev=1882128&r1=1882127&r2=1882128&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/apr_escape.c (original)
+++ subversion/trunk/subversion/libsvn_subr/apr_escape.c Tue Sep 29 14:19:42 2020
@@ -125,4 +125,11 @@ APR_DECLARE(apr_status_t) apr_escape_she
     return APR_SUCCESS;
 }
 
-#endif
+#else  /* APR_VERSION_AT_LEAST(1,5,0) */
+
+/* Silence OSX ranlib warnings about object files with no symbols. */
+#include <apr.h>
+extern const apr_uint32_t svn__fake__apr_escape;
+const apr_uint32_t svn__fake__apr_escape = 0xdeadbeef;
+
+#endif /* !APR_VERSION_AT_LEAST(1,5,0) */



Mime
View raw message