From d317e46bbc8dfa0e926fac507feacad4c647f24d Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 24 Feb 2014 16:43:19 +0100 Subject: Silence warning about unused variable --- src/export/convert_coords.c | 2 +- src/export/extract_version_1.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/export/convert_coords.c b/src/export/convert_coords.c index 05db96e..abbbc22 100644 --- a/src/export/convert_coords.c +++ b/src/export/convert_coords.c @@ -5,7 +5,7 @@ int main( ) { double x, y; char buf[64]; - int in; + while( fgets( buf, sizeof(buf), stdin ) ) { if( sscanf( buf, "%lf %lf", &x, &y ) == 2 ) { diff --git a/src/export/extract_version_1.c b/src/export/extract_version_1.c index 8651735..987c38f 100644 --- a/src/export/extract_version_1.c +++ b/src/export/extract_version_1.c @@ -143,6 +143,7 @@ void act_on_file( uint8_t *file ) for(i=0; ort[i]; ++i ) ort_conv[i] = cp437_to_iso8859_1_table[((uint8_t*)ort)[i]]; ort_conv[i] = 0; /* printf( "Working on a %04d page and %06d records file, city: %4s %-32s with prefix %s\n", num_pages, num_records, zip, ort_conv, vorwahl ); */ + (void)num_records; /* silence warning about unused variable */ g_state.ort = ort_conv; g_state.zip = zip; -- cgit v1.2.3