This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 0/7] Use warn_unused_result on release methods


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]