From 9ba1efd2150b7fb061f4262c93b9e9e1287d81b4 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 7 Aug 2023 13:07:06 +0200 Subject: [PATCH] c++: source position of lambda captures [PR84471] include/ * ansidecl.h (ATTRIBUTE_WARN_UNUSED_RESULT): Add __. --- include/ansidecl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ansidecl.h b/include/ansidecl.h index d94145d..39375e1 100644 --- a/include/ansidecl.h +++ b/include/ansidecl.h @@ -279,7 +279,7 @@ So instead we use the macro below and test it against specific values. */ /* Attribute `warn_unused_result' was valid as of gcc 3.3. */ #ifndef ATTRIBUTE_WARN_UNUSED_RESULT # if GCC_VERSION >= 3003 -# define ATTRIBUTE_WARN_UNUSED_RESULT __attribute__ ((warn_unused_result)) +# define ATTRIBUTE_WARN_UNUSED_RESULT __attribute__ ((__warn_unused_result__)) # else # define ATTRIBUTE_WARN_UNUSED_RESULT # endif -- 2.7.4