forked from Mirrors/freeswitch
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:
parent
a973fb6347
commit
932dccd475
|
@ -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
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue