From 4f1549c263dd94724f205d710158fc20d13da058 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Fri, 5 Apr 2013 01:53:55 -0400 Subject: [PATCH] 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 --- Open-ILS/src/c-apps/oils_sql.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 { -- 2.11.0