]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix/Update clang-RAII macro implementation 92/192/1
authorDiederik de Groot <ddegroot@talon.nl>
Mon, 20 Apr 2015 18:01:35 +0000 (20:01 +0200)
committerMatt Jordan <mjordan@digium.com>
Wed, 22 Apr 2015 11:25:07 +0000 (06:25 -0500)
commit42955825111967ef417714b3660c2518b35c1437
tree8d31b43932eced12dd23cc694ae073239583fb44
parentfc79cae5d54b4d7ebec69ad68574a5a5545acdf1
Fix/Update clang-RAII macro implementation

- When you need to refer to 'variable XXX' outside a block, it needs
to be declared as '__block XXX', otherwise it will not be available with-
in the block, making updating that variable hard to do, and ast_free
lead to issues.

- Removed the #error message
because it creates complications when compiling external projects
against asterisk For example when using a different compiler than the
one used to compile asterisk. The warning/error should be generated
during the configure process not the compilation process

ASTERISK-24917
Change-Id: I12091228090e90831bf2b498293858f46ea7a8c2
include/asterisk/utils.h