]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix issue with AST_THREADSTORAGE_RAW when DEBUG_THREADLOCALS is enabled. 42/142/1
authorCorey Farrell <git@cfware.com>
Fri, 17 Apr 2015 21:19:24 +0000 (17:19 -0400)
committerCorey Farrell <git@cfware.com>
Fri, 17 Apr 2015 21:29:46 +0000 (16:29 -0500)
commitc59a80070764f1989dbeca1d97c4e97717314c13
tree13a0478e8a0c952157a00062d0a0e3ce39383cb7
parente05b0768278a4d697f8b02d1fb81a8c602fc6516
Fix issue with AST_THREADSTORAGE_RAW when DEBUG_THREADLOCALS is enabled.

When DEBUG_THREADLOCALS is enabled it causes the threadlocal cleanup to be
called as a function.  This causes a compile error with raw threadstorage as
it uses NULL for cleanup.  This fix uses a macro that provides NULL when
DEBUG_THREADLOCALS is disabled, and replaces the call to "c_cleanup(data);"
with "{};" when DEBUG_THREADLOCALS is enabled.

ASTERISK-24975 #close
Reported by: Ashley Sanders

Change-Id: I3ef7428ee402816d9fcefa1b3b95830c00d5c402
include/asterisk/threadstorage.h