mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: move variable declaration closer to use
This way we avoid an unused variable warning on mobile builds. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c5eaac122e
commit
369baa5b74
1 changed files with 4 additions and 4 deletions
|
@ -281,7 +281,7 @@ int parse_csv_file(const char *filename, struct xml_params *params, const char *
|
||||||
struct dive_table *table, struct trip_table *trips, struct dive_site_table *sites,
|
struct dive_table *table, struct trip_table *trips, struct dive_site_table *sites,
|
||||||
struct device_table *devices, struct filter_preset_table *filter_presets)
|
struct device_table *devices, struct filter_preset_table *filter_presets)
|
||||||
{
|
{
|
||||||
int ret, i;
|
int ret;
|
||||||
struct memblock mem;
|
struct memblock mem;
|
||||||
time_t now;
|
time_t now;
|
||||||
struct tm *timep = NULL;
|
struct tm *timep = NULL;
|
||||||
|
@ -326,7 +326,7 @@ int parse_csv_file(const char *filename, struct xml_params *params, const char *
|
||||||
#ifndef SUBSURFACE_MOBILE
|
#ifndef SUBSURFACE_MOBILE
|
||||||
if (verbose >= 2) {
|
if (verbose >= 2) {
|
||||||
fprintf(stderr, "(echo '<csv>'; cat %s;echo '</csv>') | xsltproc ", filename);
|
fprintf(stderr, "(echo '<csv>'; cat %s;echo '</csv>') | xsltproc ", filename);
|
||||||
for (i = 0; i < xml_params_count(params); i++)
|
for (int i = 0; i < xml_params_count(params); i++)
|
||||||
fprintf(stderr, "--stringparam %s %s ", xml_params_get_key(params, i), xml_params_get_value(params, i));
|
fprintf(stderr, "--stringparam %s %s ", xml_params_get_key(params, i), xml_params_get_value(params, i));
|
||||||
fprintf(stderr, "%s/xslt/%s -\n", SUBSURFACE_SOURCE, csvtemplate);
|
fprintf(stderr, "%s/xslt/%s -\n", SUBSURFACE_SOURCE, csvtemplate);
|
||||||
}
|
}
|
||||||
|
@ -950,7 +950,7 @@ int parse_manual_file(const char *filename, struct xml_params *params, struct di
|
||||||
struct tm *timep;
|
struct tm *timep;
|
||||||
char curdate[9];
|
char curdate[9];
|
||||||
char curtime[6];
|
char curtime[6];
|
||||||
int ret, i;
|
int ret;
|
||||||
|
|
||||||
|
|
||||||
time(&now);
|
time(&now);
|
||||||
|
@ -974,7 +974,7 @@ int parse_manual_file(const char *filename, struct xml_params *params, struct di
|
||||||
#ifndef SUBSURFACE_MOBILE
|
#ifndef SUBSURFACE_MOBILE
|
||||||
if (verbose >= 2) {
|
if (verbose >= 2) {
|
||||||
fprintf(stderr, "(echo '<manualCSV>'; cat %s;echo '</manualCSV>') | xsltproc ", filename);
|
fprintf(stderr, "(echo '<manualCSV>'; cat %s;echo '</manualCSV>') | xsltproc ", filename);
|
||||||
for (i = 0; i < xml_params_count(params); i++)
|
for (int i = 0; i < xml_params_count(params); i++)
|
||||||
fprintf(stderr, "--stringparam %s %s ", xml_params_get_key(params, i), xml_params_get_value(params, i));
|
fprintf(stderr, "--stringparam %s %s ", xml_params_get_key(params, i), xml_params_get_value(params, i));
|
||||||
fprintf(stderr, "%s/xslt/manualcsv2xml.xslt -\n", SUBSURFACE_SOURCE);
|
fprintf(stderr, "%s/xslt/manualcsv2xml.xslt -\n", SUBSURFACE_SOURCE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue