]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix/Update clang-RAII macro implementation 59/159/4
authorDiederik de Groot <ddegroot@talon.nl>
Mon, 20 Apr 2015 18:01:35 +0000 (20:01 +0200)
committerMark Michelson <mmichelson@digium.com>
Mon, 20 Apr 2015 22:09:10 +0000 (17:09 -0500)
commit2be9cc26434fa91dc6f5bf9a39097d0ef4582a13
tree9bb31837d323b49610e85629cf1d71d9d6ff3371
parentb74b2cdcda5b5c2228e55142ec33d3c16790e233
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