From ec25f180f1aa33fbe0e29f7d56482e26bb993fb0 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 25 Oct 2019 10:48:30 -0400 Subject: [PATCH] Use typeof instead of __auto_type 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 Reviewed-on: https://review.lttng.org/c/babeltrace/+/2256 Reviewed-by: Michael Jeanson Reviewed-by: Francis Deslauriers Tested-by: jenkins --- src/common/macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/macros.h b/src/common/macros.h index 036b3e01..ff7da410 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -56,7 +56,7 @@ #define BT_MOVE_REF(ref) \ ({ \ - __auto_type _ref = ref; \ + typeof(ref) _ref = ref; \ ref = NULL; \ _ref; \ }) -- 2.34.1