From: Jason Merrill Date: Mon, 7 Aug 2023 11:07:06 +0000 (+0200) Subject: c++: source position of lambda captures [PR84471] X-Git-Tag: gdb-14-branchpoint~661 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ba1efd2150b7fb061f4262c93b9e9e1287d81b4;p=thirdparty%2Fbinutils-gdb.git c++: source position of lambda captures [PR84471] include/ * ansidecl.h (ATTRIBUTE_WARN_UNUSED_RESULT): Add __. --- diff --git a/include/ansidecl.h b/include/ansidecl.h index d94145d1313..39375e17156 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