From: Simon Marchi Date: Fri, 25 Oct 2019 14:48:30 +0000 (-0400) Subject: Use typeof instead of __auto_type X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=e3d110d6ba7e990914d2586a8c13510bce7ae990 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 --- 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; \ })