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]

[PATCH 0/7] Use warn_unused_result on release methods


This applies the warn_unused_result attribute to various "release"
methods in gdb.  The idea here is to avoid the bug where "release" is
used when "reset (nullptr)" is meant.

This caught one bug, so I consider it a success.  Perhaps the new
attribute can be used elsewhere as well.

Tested by the buildbot.
Let me know what you think.

thanks,
Tom



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