blob: b2c490e2559ea3e57a7250e566ca86840073d492 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- include/asterisk/utils.h.orig 2013-07-02 11:52:13.000000000 +0200
+++ include/asterisk/utils.h 2013-07-02 12:32:18.000000000 +0200
@@ -927,9 +927,6 @@
* \encode
*/
#define RAII_VAR(vartype, varname, initval, dtor) \
- /* Prototype needed due to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36774 */ \
- auto void _dtor_ ## varname (vartype * v); \
- void _dtor_ ## varname (vartype * v) { dtor(*v); } \
- vartype varname __attribute__((cleanup(_dtor_ ## varname))) = (initval)
+ vartype varname __attribute__((cleanup(dtor ## _cleanup))) = (initval)
#endif /* _ASTERISK_UTILS_H */
|