[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. 4aa6ba3446d22881fc7761d7ab7773acbc35f6d3

Evergreen Git git at git.evergreen-ils.org
Thu Oct 11 11:27:23 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, rel_2_2 has been updated
       via  4aa6ba3446d22881fc7761d7ab7773acbc35f6d3 (commit)
      from  235b2e93f2be65c6e490d6390bd6252f35345353 (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 4aa6ba3446d22881fc7761d7ab7773acbc35f6d3
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