forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user