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 2012-06-24 08:11:23 +00:00
parent a973fb6347
commit 932dccd475
2 changed files with 2 additions and 2 deletions

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
/**

View File

@ -1895,7 +1895,7 @@ APR_DECLARE(int) apr_pool_is_ancestor(apr_pool_t *a, apr_pool_t *b)
return 0;
}
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 (tag) {
pool->tag = tag;