mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-10 01:40:26 +00:00
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 pool The pool to tag
|
||||||
* @param tag The 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
|
#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;
|
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) {
|
if (tag) {
|
||||||
pool->tag = tag;
|
pool->tag = tag;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user