]> git.ipfire.org Git - thirdparty/asterisk.git/commit
strings.h: ast_str_to_upper() and _to_lower() are not pure.
authorSean Bright <sean.bright@gmail.com>
Mon, 8 Mar 2021 20:06:00 +0000 (15:06 -0500)
committerJoshua Colp <jcolp@sangoma.com>
Wed, 10 Mar 2021 10:18:14 +0000 (04:18 -0600)
commit08b94d5837aba4850cc8fee513c518551e905ef0
treee9907a2e1822abc73aea878049dbdd7a3c3cdbde
parent1fc4ab38b860b3d526a0eaa40aaea6a2b7881538
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
include/asterisk/strings.h