This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/7] Use warn_unused_result on release methods
- From: Tom Tromey <tom at tromey dot com>
- To: Tom Tromey <tromey at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 05 Mar 2019 08:46:46 -0700
- Subject: Re: [PATCH 0/7] Use warn_unused_result on release methods
- References: <20190227221814.17661-1-tromey@adacore.com>
>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:
Tom> This applies the warn_unused_result attribute to various "release"
Tom> methods in gdb. The idea here is to avoid the bug where "release" is
Tom> used when "reset (nullptr)" is meant.
Tom> This caught one bug, so I consider it a success. Perhaps the new
Tom> attribute can be used elsewhere as well.
I'm checking this in now.
Tom