[3109] in BarnOwl Developers
[barnowl/barnowl] d427f0: Use G_GNUC_WARN_UNUSED_RESULT
daemon@ATHENA.MIT.EDU (noreply@github.com)
Wed Jun 22 15:41:55 2011
Date: Wed, 22 Jun 2011 12:41:53 -0700
To: barnowl-dev@mit.edu
From: noreply@github.com
Branch: refs/heads/master
Home: https://github.com/barnowl/barnowl
Commit: d427f08508a96769e6a7fd429711b6349caf5b57
https://github.com/barnowl/barnowl/commit/d427f08508a96769e6a7fd429711b6349caf5b57
Author: Jason Gross <jgross@mit.edu>
Date: 2011-06-22 (Wed, 22 Jun 2011)
Changed paths:
M aim.c
M cmd.c
M commands.c
M context.c
M dict.c
M editcontext.c
M editwin.c
M filter.c
M fmtext.c
M functions.c
M global.c
M keybinding.c
M keymap.c
M keypress.c
M list.c
M logging.c
M message.c
M messagelist.c
M owl.h
M perlconfig.c
M popwin.c
M regex.c
M text.c
M util.c
M variable.c
M viewwin.c
M window.c
M zcrypt.c
M zephyr.c
M zwrite.c
Log Message:
-----------
Use G_GNUC_WARN_UNUSED_RESULT
Have gcc warn us when we ignore the result of a function that requires
the caller to free the result, or an initilization function that can
fail. This might help (slightly) with preventing leaks and segfaults.
Additionally changed some functions that should never fail to not
return values. (The owl_list_* functions changed only fail if
list->size < 0, which we assume is not the case elsewhere.)