From: Edward d'Auvergne Date: Thu, 10 Dec 2015 08:23:29 +0000 (+0100) Subject: LaRCsim cleanup of -Wunused-variable compilation warnings. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=97d0ab7eb9c0f95c50a1751e9c30fc8c71893349;p=flightgear.git LaRCsim cleanup of -Wunused-variable compilation warnings. A number of static array definitions were shifted into the scope of the function. --- diff --git a/src/FDM/LaRCsim/ls_interface.c b/src/FDM/LaRCsim/ls_interface.c index c7dd06516..04251097f 100644 --- a/src/FDM/LaRCsim/ls_interface.c +++ b/src/FDM/LaRCsim/ls_interface.c @@ -272,10 +272,6 @@ char *fullname; static double model_dt; static double speedup; -static char asc1name[MAX_FILE_NAME_LENGTH] = "run.asc1"; -static char tabname[MAX_FILE_NAME_LENGTH] = "run.dat"; -static char fltname[MAX_FILE_NAME_LENGTH] = "run.flt"; -static char matname[MAX_FILE_NAME_LENGTH] = "run.m"; @@ -347,6 +343,10 @@ int ls_checkopts(argc, argv) /* check and set options flags */ int mod_end_time = 0; int mod_buf_size = 0; float buffer_time, data_rate; + char asc1name[MAX_FILE_NAME_LENGTH] = "run.asc1"; + char tabname[MAX_FILE_NAME_LENGTH] = "run.dat"; + char fltname[MAX_FILE_NAME_LENGTH] = "run.flt"; + char matname[MAX_FILE_NAME_LENGTH] = "run.m"; /* set default values */