c++: source position of lambda captures [PR84471]

include/
	* ansidecl.h (ATTRIBUTE_WARN_UNUSED_RESULT): Add __.
This commit is contained in:
Jason Merrill 2023-08-07 13:07:06 +02:00 committed by Alan Modra
parent a5e58a4164
commit 9ba1efd215

View File

@ -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