aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2023-08-07 13:07:06 +0200
committerAlan Modra <amodra@gmail.com>2023-08-12 09:58:22 +0930
commit9ba1efd2150b7fb061f4262c93b9e9e1287d81b4 (patch)
tree9debfac6633599771516eaa3b96d3d47fbd92965
parenta5e58a41647619c048335b91b60de621f88edd73 (diff)
downloadgdb-9ba1efd2150b7fb061f4262c93b9e9e1287d81b4.zip
gdb-9ba1efd2150b7fb061f4262c93b9e9e1287d81b4.tar.gz
gdb-9ba1efd2150b7fb061f4262c93b9e9e1287d81b4.tar.bz2
c++: source position of lambda captures [PR84471]
include/ * ansidecl.h (ATTRIBUTE_WARN_UNUSED_RESULT): Add __.
-rw-r--r--include/ansidecl.h2
1 files changed, 1 insertions, 1 deletions
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