From: Dan Scott Date: Fri, 5 Apr 2013 05:53:55 +0000 (-0400) Subject: Prevent compiler warning about unused numtype var X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4f1549c263dd94724f205d710158fc20d13da058;p=contrib%2FConifer.git Prevent compiler warning about unused numtype var There was a dangling variable left around that was making noise in the compiler. Credit to Jeff Godin for the heads-up. Signed-off-by: Dan Scott Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/c-apps/oils_sql.c b/Open-ILS/src/c-apps/oils_sql.c index ea614e153e..eb3f48b498 100644 --- a/Open-ILS/src/c-apps/oils_sql.c +++ b/Open-ILS/src/c-apps/oils_sql.c @@ -2468,9 +2468,8 @@ int doRetrieve( osrfMethodContext* ctx ) { */ static char* jsonNumberToDBString( osrfHash* field, const jsonObject* value ) { growing_buffer* val_buf = buffer_init( 32 ); - const char* numtype = get_datatype( field ); - // If the value is a number and the DB field is numeric, no quotes needed + // If the value is a number and the DB field is numeric, no quotes needed if( value->type == JSON_NUMBER && !strcmp( get_primitive( field ), "number") ) { buffer_fadd( val_buf, jsonObjectGetString( value ) ); } else {