Skip to content
Snippets Groups Projects
Commit 30e509c2 authored by Sean Bright's avatar Sean Bright Committed by Joshua Colp
Browse files

strings.h: ast_str_to_upper() and _to_lower() are not pure.

Because they modify their argument they are not pure functions and
should not be marked as such, otherwise the compiler may optimize
them away.

ASTERISK-29306 #close

Change-Id: Ibec03a08522dd39e8a137ece9bc6a3059dfaad5f
parent df37b818
No related branches found
No related tags found
3 merge requests!138Merge branch asterisk-20.3.0 into devel properly,!123Merge asterisk '20.3.0' into devel,!118Draft: manager: AOC-S support for AOCMessage
......@@ -1265,7 +1265,7 @@ static force_inline int attribute_pure ast_str_case_hash(const char *str)
*
* \retval str for convenience
*/
static force_inline char *attribute_pure ast_str_to_lower(char *str)
static force_inline char *ast_str_to_lower(char *str)
{
char *str_orig = str;
if (!str) {
......@@ -1286,7 +1286,7 @@ static force_inline char *attribute_pure ast_str_to_lower(char *str)
*
* \retval str for convenience
*/
static force_inline char *attribute_pure ast_str_to_upper(char *str)
static force_inline char *ast_str_to_upper(char *str)
{
char *str_orig = str;
if (!str) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment