]> git.mxchange.org Git - flightgear.git/commitdiff
UIUC and LaRCsim cleanup of -Wunused-variable compilation warnings.
authorEdward d'Auvergne <edward@nmr-relax.com>
Thu, 10 Dec 2015 07:47:35 +0000 (08:47 +0100)
committerEdward d'Auvergne <edward@nmr-relax.com>
Thu, 10 Dec 2015 08:04:18 +0000 (09:04 +0100)
This is for defined but unused variables, many of which are in commented out
code.

src/FDM/LaRCsim/basic_aero.c
src/FDM/LaRCsim/basic_gear.c
src/FDM/LaRCsim/c172_gear.c
src/FDM/LaRCsim/cherokee_aero.c
src/FDM/LaRCsim/cherokee_gear.c
src/FDM/LaRCsim/ls_init.c
src/FDM/LaRCsim/ls_interface.c
src/FDM/LaRCsim/ls_matrix.c
src/FDM/LaRCsim/navion_gear.c
src/FDM/UIUCModel/uiuc_flapdata.cpp

index e5185318d89b016794880b6def681ae3fee30dbd..d035dd808512dcee1f3900b5fc26574e53511522 100644 (file)
@@ -79,7 +79,7 @@ void basic_aero(SCALAR dt, int Initialize)
 // zero, then re-initialize coefficients by reading in the coefficient file.
 {
  static int init = 0;
- static SCALAR elevator_drela, aileron_drela, rudder_drela;
//static SCALAR elevator_drela, aileron_drela, rudder_drela;
 
  SCALAR C_ref;
  SCALAR B_ref;
@@ -152,12 +152,14 @@ void basic_aero(SCALAR dt, int Initialize)
  SCALAR Cl_r_mod,Cn_p_mod;
  SCALAR CL_drela,CD_drela,Cx_drela,Cy_drela,Cz_drela,Cl_drela,Cm_drela,Cn_drela;
  SCALAR QS;
+ /*
  SCALAR G_11,G_12,G_13;
  SCALAR G_21,G_22,G_23;
  SCALAR G_31,G_32,G_33;
  SCALAR U_body_X,U_body_Y,U_body_Z;
  SCALAR V_body_X,V_body_Y,V_body_Z;
  SCALAR W_body_X,W_body_Y,W_body_Z;
+ */
  SCALAR P_atmo,Q_atmo,R_atmo;
 
  // set the parameters
index f634b39cd3e08f4d3aa3eda9f47219571a195516..889d9df3834fadcd3b7ee7403e26aa82930177f1 100644 (file)
@@ -98,7 +98,7 @@ static void clear3( DATA v[] )
 
 void basic_gear()
 {
-char rcsid[] = "junk";
+//char rcsid[] = "junk";
 #define NUM_WHEELS 4
 
 // char gear_strings[NUM_WHEELS][12]={"nose","right main", "left main", "tail skid"};
index f6473f99a001192bc929fc60aaf0d746fec1ae50..cb04ca9c09b7bd80a9e2ebc04ff12a6da4f94785 100644 (file)
@@ -149,7 +149,7 @@ static void clear3( DATA v[] )
 
 void c172_gear()
 {
-char rcsid[] = "$Id$";
+//char rcsid[] = "$Id$";
 #define NUM_WHEELS 4
 // char gear_strings[NUM_WHEELS][12]={"nose","right main", "left main", "tail skid"};
   /*
index 46f738ae85c507f4d2345f03ada7342e5e591270..27a10f0b1d36c35fda955bc63a19812ae14695a6 100644 (file)
@@ -83,15 +83,15 @@ void cherokee_aero()
                Clp  = -0.4704, 
                Clr  = 0.1665, 
                Cyb  = -1169.8/(146.69*146.69*157.5/2.0*0.00238),
-               Cyp  = -0.0342, 
+               // Cyp  = -0.0342, (unused)
                Cnb  = 11127.2/(146.69*146.69*157.5/2.0*0.00238)/30.0, 
                Cnp  = -0.0691, 
                Cnr  = -0.0930, 
-               Cyf  = -14.072/(146.69*146.69*157.5/2.0*0.00238), 
-               Cyps = 89.229/(146.69*146.69*157.5/2.0*0.00238), 
-               Clf  = -5812.4/(146.69*146.69*157.5/2.0*0.00238)/30.0,  //%Clda ?  
-               Cnf  = -853.93/(146.69*146.69*157.5/2.0*0.00238)/30.0,  //%Cnda ?  
-               Cnps = -1149.0/(146.69*146.69*157.5/2.0*0.00238)/30.0,  //%Cndr ?  
+               // Cyf  = -14.072/(146.69*146.69*157.5/2.0*0.00238), (unused)
+               // Cyps = 89.229/(146.69*146.69*157.5/2.0*0.00238), (unused)
+               // Clf  = -5812.4/(146.69*146.69*157.5/2.0*0.00238)/30.0,  //%Clda ? (unused)
+               // Cnf  = -853.93/(146.69*146.69*157.5/2.0*0.00238)/30.0,  //%Cnda ? (unused)
+               // Cnps = -1149.0/(146.69*146.69*157.5/2.0*0.00238)/30.0,  //%Cndr ? (unused)
                Cyr  = 1.923/(146.69*146.69*157.5/2.0*0.00238), 
 
                Cx0 = -0.4645/(157.5*0.3048*0.3048), 
@@ -100,7 +100,7 @@ void cherokee_aero()
                Cm0 =  0.0959, 
 
                Clda = -5812.4/(146.69*146.69*157.5/2.0*0.00238)/30.0, // Clf
-               Cnda = -853.93/(146.69*146.69*157.5/2.0*0.00238)/30.0, // Cnf
+               // Cnda = -853.93/(146.69*146.69*157.5/2.0*0.00238)/30.0, // Cnf (unused)
                Cndr = -1149.0/(146.69*146.69*157.5/2.0*0.00238)/30.0, // Cnps
 
 /*
index e3fc73c248f246046d8bc67c496e908d7268edf7..72e821ceebbcdd3e9dd041737cda8a9cf6b279ef 100644 (file)
@@ -135,7 +135,7 @@ static void clear3( DATA v[] )
 
 void cherokee_gear()
 {
-char rcsid[] = "$Id$";
+// char rcsid[] = "$Id$";
 
   /*
    * Aircraft specific initializations and data goes here
index b249608c92cc45b1150cbfd669166657d127f6f9..c62736ce9b18b695c17da667bca075efd6282a1c 100644 (file)
@@ -128,7 +128,7 @@ Initial Flight Gear revision.
        OUTPUTS:
 
 --------------------------------------------------------------------------*/
-static char rcsid[] = "$Id$";
+// static char rcsid[] = "$Id$";
 
 #include <string.h>
 #include <stdio.h>
index e24b2aa82c1492f32de55f47329cf9de67c3ba02..3ac0cb2a3b4b6e04c1949af57ae164bd7cb2d83d 100644 (file)
@@ -280,7 +280,7 @@ static char  matname[MAX_FILE_NAME_LENGTH]  = "run.m";
 
 
 void ls_stamp( void ) {
-    char rcsid[] = "$Id$";
+    // char rcsid[] = "$Id$";
     char revid[] = "$Revision$";
     char dateid[] = "$Date$";
     struct tm *nowtime;
index b2bc9c8d1da272a7f383bb86fdeb2a28bc3d51c7..6752db731c7251b391b497574906b63fea6f61c3 100644 (file)
@@ -106,7 +106,7 @@ Initial revision.
 
 #define SWAP(a,b) {temp=(a);(a)=(b);(b)=temp;}
 
-static char rcsid[] = "$Id$";
+// static char rcsid[] = "$Id$";
 
 
 int *nr_ivector(long nl, long nh)
index 995955c889285765c7024d3caebe58e55410c627..41382d3277214baddc783d92539bbe5a8cde66a9 100644 (file)
@@ -159,7 +159,7 @@ static void clear3( DATA v[] )
 }
 
 void navion_gear( SCALAR dt, int Initialize ) {
-char rcsid[] = "$Id$";
+// char rcsid[] = "$Id$";
 
   /*
    * Aircraft specific initializations and data goes here
index 7c64d697167af58ed99c0047de7a0afd0a9af796..662e274623849cddd95b71ea5f8fdf684e0d6087 100644 (file)
@@ -262,7 +262,7 @@ double FlapData::interpolate(double x0, double y0, double x1, double y1, double
 int FlapData::readIn (ifstream* f){
 
         int i,j,k,l;
-        int count=0;
+        //int count=0;
         char numstr[200];
 
         f->getline(numstr,200);