[open-ils-commits] [GIT] Evergreen ILS branch master updated. e5fe5acb22a7fe3d7e88ec0a8cf5a202410ef056
Evergreen Git
git at git.evergreen-ils.org
Thu Oct 11 11:26:57 EDT 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via e5fe5acb22a7fe3d7e88ec0a8cf5a202410ef056 (commit)
from c533d8d9ead6cdcb32aa0d6e59ed780ae3a1f11b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e5fe5acb22a7fe3d7e88ec0a8cf5a202410ef056
Author: Dan Scott <dscott at laurentian.ca>
Date: Thu Aug 30 00:21:01 2012 -0400
Remove C compiler warning for writeAuditInfo
The C compiler was throwing the following warning:
oils_sql.c: In function 'writeAuditInfo':
oils_sql.c:7244:1: warning: control reaches end of non-void function
[-Wreturn-type]
By shifting the "return 0" to the end of the function, outside of the if
statements, we can ensure that we always return an int value.
Signed-off-by: Dan Scott <dscott at laurentian.ca>
Signed-off-by: Jason Stephenson <jstephenson at mvlc.org>
diff --git a/Open-ILS/src/c-apps/oils_sql.c b/Open-ILS/src/c-apps/oils_sql.c
index 5c93b29..b262a70 100644
--- a/Open-ILS/src/c-apps/oils_sql.c
+++ b/Open-ILS/src/c-apps/oils_sql.c
@@ -7238,9 +7238,9 @@ int writeAuditInfo( osrfMethodContext* ctx, const char* user_id, const char* ws_
return -1;
} else {
dbi_result_free( result );
- return 0;
}
}
+ return 0;
}
/*@}*/
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/c-apps/oils_sql.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list