aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-02-26 14:39:01 -0700
committerTom Tromey <tromey@adacore.com>2019-03-05 08:48:39 -0700
commit18cb7c9f3add62ff598f0551a767af8aaa04b07e (patch)
tree81fa217c13e517539762f3d2d0bd8a19bc3edbc4 /gdb/utils.h
parent093f70ccd3d8366de1faae3335bbe2eebd2a75d4 (diff)
downloadbinutils-18cb7c9f3add62ff598f0551a767af8aaa04b07e.zip
binutils-18cb7c9f3add62ff598f0551a767af8aaa04b07e.tar.gz
binutils-18cb7c9f3add62ff598f0551a767af8aaa04b07e.tar.bz2
Introduce ATTRIBUTE_UNUSED_RESULT and use it
This introduces the new ATTRIBUTE_UNUSED_RESULT define, and applies it to gdb_argv::release. gdb/ChangeLog 2019-03-05 Tom Tromey <tromey@adacore.com> * utils.h (class gdb_argv) <release>: Add ATTRIBUTE_UNUSED_RESULT. * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
Diffstat (limited to 'gdb/utils.h')
-rw-r--r--gdb/utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/utils.h b/gdb/utils.h
index 896feb9..9dbd638 100644
--- a/gdb/utils.h
+++ b/gdb/utils.h
@@ -188,7 +188,7 @@ public:
/* Return the underlying array, transferring ownership to the
caller. */
- char **release ()
+ ATTRIBUTE_UNUSED_RESULT char **release ()
{
char **result = m_argv;
m_argv = NULL;