[open-ils-commits] [GIT] Evergreen ILS branch rel_2_3 updated. d2bd31086e134610602c3a6a8e17b68de775d98b

Evergreen Git git at git.evergreen-ils.org
Thu Oct 11 11:27:08 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_3 has been updated
       via  d2bd31086e134610602c3a6a8e17b68de775d98b (commit)
      from  e30193d1712cbb6f4ebb17d71d00a0b5e1eb3b10 (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 d2bd31086e134610602c3a6a8e17b68de775d98b
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 9f0f27a..db03497 100644
--- a/Open-ILS/src/c-apps/oils_sql.c
+++ b/Open-ILS/src/c-apps/oils_sql.c
@@ -7230,9 +7230,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