Return const char* from apr_pool_tag

clang warns:

  warning: returning 'const char *' from a function with result type
    'char *' discards qualifiers [-Wincompatible-pointer-types]
This commit is contained in:
Travis Cross committed 2012-06-24 08:15:16 +00:00
1 parent a973fb6347
commit 932dccd475
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -409,7 +409,7 @@ APR_DECLARE(int) apr_pool_is_ancestor(apr_pool_t *a, apr_pool_t *b);
* @param pool The pool to tag
* @param tag The tag
*/
APR_DECLARE(char *) apr_pool_tag(apr_pool_t *pool, const char *tag);
APR_DECLARE(const char *) apr_pool_tag(apr_pool_t *pool, const char *tag);
#if APR_HAS_THREADS
/**