From: Dan Scott Date: Thu, 30 Aug 2012 04:12:33 +0000 (-0400) Subject: Remove compiler warning about unused variable X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=984c423a1d301c936fcf9dc2c85b8f8f259670e0;p=working%2FEvergreen.git Remove compiler warning about unused variable Newer versions of GCC were issuing the following warning: oils_sql.c: In function 'oilsMakeJSONFromResult': oils_sql.c:6469:6: warning: variable 'fmIndex' set but not used [-Wunused-but-set-variable] And indeed, the variable is not used within this function - so delete it. Signed-off-by: Dan Scott Signed-off-by: Jason Stephenson --- diff --git a/Open-ILS/src/c-apps/oils_sql.c b/Open-ILS/src/c-apps/oils_sql.c index c9c1618dc0..5bc76b11bc 100644 --- a/Open-ILS/src/c-apps/oils_sql.c +++ b/Open-ILS/src/c-apps/oils_sql.c @@ -6466,7 +6466,6 @@ static jsonObject* oilsMakeJSONFromResult( dbi_result result ) { char dt_string[ 256 ]; struct tm gmdt; - int fmIndex; int columnIndex = 1; int attr; unsigned short type; @@ -6477,8 +6476,6 @@ static jsonObject* oilsMakeJSONFromResult( dbi_result result ) { osrfLogInternal( OSRF_LOG_MARK, "Looking for column named [%s]...", (char*) columnName ); - fmIndex = -1; // reset the position - /* determine the field type and storage attributes */ type = dbi_result_get_field_type_idx( result, columnIndex ); attr = dbi_result_get_field_attribs_idx( result, columnIndex );