summaryrefslogtreecommitdiff
path: root/src/export
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2014-02-24 16:43:19 +0100
committerDirk Engling <erdgeist@erdgeist.org>2014-02-24 16:43:19 +0100
commitd317e46bbc8dfa0e926fac507feacad4c647f24d (patch)
tree1f47a7ff054ab606c9ad1d0773624940eaaf063d /src/export
parent6b7cd628f6681c75f1149a76534adea5e9363396 (diff)
Silence warning about unused variable
Diffstat (limited to 'src/export')
-rw-r--r--src/export/convert_coords.c2
-rw-r--r--src/export/extract_version_1.c1
2 files changed, 2 insertions, 1 deletions
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( )
5{ 5{
6 double x, y; 6 double x, y;
7 char buf[64]; 7 char buf[64];
8 int in; 8
9 while( fgets( buf, sizeof(buf), stdin ) ) 9 while( fgets( buf, sizeof(buf), stdin ) )
10 { 10 {
11 if( sscanf( buf, "%lf %lf", &x, &y ) == 2 ) { 11 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 )
143 143
144 for(i=0; ort[i]; ++i ) ort_conv[i] = cp437_to_iso8859_1_table[((uint8_t*)ort)[i]]; ort_conv[i] = 0; 144 for(i=0; ort[i]; ++i ) ort_conv[i] = cp437_to_iso8859_1_table[((uint8_t*)ort)[i]]; ort_conv[i] = 0;
145 /* 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 ); */ 145 /* 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 ); */
146 (void)num_records; /* silence warning about unused variable */
146 147
147 g_state.ort = ort_conv; 148 g_state.ort = ort_conv;
148 g_state.zip = zip; 149 g_state.zip = zip;