]> git.mxchange.org Git - flightgear.git/commitdiff
LaRCsim cleanup of -Wunused-variable compilation warnings.
authorEdward d'Auvergne <edward@nmr-relax.com>
Thu, 10 Dec 2015 08:23:29 +0000 (09:23 +0100)
committerEdward d'Auvergne <edward@nmr-relax.com>
Thu, 10 Dec 2015 08:23:29 +0000 (09:23 +0100)
A number of static array definitions were shifted into the scope of the function.

src/FDM/LaRCsim/ls_interface.c

index c7dd065162253747b265d267251064ce579d00a5..04251097fd29f2b7540891cc887dcd69b9e283d0 100644 (file)
@@ -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 */