You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2016/05/12 12:45:07 UTC
qpid-dispatch git commit: DISPATCH-290 - Cleaned up a warning for
ignoring return values.
Repository: qpid-dispatch
Updated Branches:
refs/heads/master 590d79ef9 -> 3f5c33211
DISPATCH-290 - Cleaned up a warning for ignoring return values.
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/3f5c3321
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/3f5c3321
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/3f5c3321
Branch: refs/heads/master
Commit: 3f5c33211b2786c8f68d8ba10b7870d05296f7d5
Parents: 590d79e
Author: Ted Ross <tr...@redhat.com>
Authored: Thu May 12 08:41:52 2016 -0400
Committer: Ted Ross <tr...@redhat.com>
Committed: Thu May 12 08:41:52 2016 -0400
----------------------------------------------------------------------
src/error.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/3f5c3321/src/error.c
----------------------------------------------------------------------
diff --git a/src/error.c b/src/error.c
index 87deae0..d531d7a 100644
--- a/src/error.c
+++ b/src/error.c
@@ -175,11 +175,13 @@ qd_error_t qd_error_py_impl(const char *file, int line) {
return qd_error_code();
}
+static inline void ignore_result(char* ignored) {}
+
qd_error_t qd_error_errno_impl(int errnum, const char *file, int line, const char *fmt, ...) {
if (errnum) {
ts.error_code = QD_ERROR_SYSTEM;
char buf[ERROR_MAX];
- strerror_r(errno, buf, sizeof(buf));
+ ignore_result(strerror_r(errno, buf, sizeof(buf)));
char *begin = ts.error_message;
char *end = begin + ERROR_MAX;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org