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 <dscott@laurentian.ca>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
char dt_string[ 256 ];
struct tm gmdt;
- int fmIndex;
int columnIndex = 1;
int attr;
unsigned short type;
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 );