Use typeof instead of __auto_type
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 25 Oct 2019 14:48:30 +0000 (10:48 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 30 Oct 2019 19:14:53 +0000 (15:14 -0400)
We need to support gcc 4.8, which doesn't support __auto_type.  We can
use typeof instead.

Change-Id: I29c58b0270eef3b841dfb8d24c704e87ff756d8d
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2256
Reviewed-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
src/common/macros.h

index 036b3e012b7fc47b360f63007501d5eea20ffe7d..ff7da410106a39d981556cd13d0905d2a2d662b8 100644 (file)
@@ -56,7 +56,7 @@
 
 #define BT_MOVE_REF(ref)               \
        ({                              \
-               __auto_type _ref = ref; \
+               typeof(ref) _ref = ref; \
                ref = NULL;             \
                _ref;                   \
        })
This page took 0.026152 seconds and 4 git commands to generate.