1
0
Fork 0

Fix some FDM warnings with Clang

This commit is contained in:
James Turner 2016-01-10 12:55:18 -06:00
parent e5c6d14cef
commit 078366cbf7
2 changed files with 7 additions and 7 deletions

View file

@ -31,7 +31,7 @@ class FGADA: public FGInterface {
private:
SGSocket *fdmsock;
#if 0
// Auxilliary Flight Model parameters, basically for HUD
double aux1; // auxilliary flag
double aux2; // auxilliary flag
@ -63,7 +63,7 @@ private:
int iaux10; // auxilliary flag
int iaux11; // auxilliary flag
int iaux12; // auxilliary flag
#endif
// copy FDM state to FGADA structures
bool copy_to_FGADA();

View file

@ -77,9 +77,9 @@ bool check_float( const string &token)
void d_2_to_3( double array2D[100][100], double array3D[][100][100], int index3D)
{
for (register int i=0; i<=99; i++)
for (int i=0; i<=99; i++)
{
for (register int j=1; j<=99; j++)
for (int j=1; j<=99; j++)
{
array3D[index3D][i][j]=array2D[i][j];
}
@ -88,7 +88,7 @@ void d_2_to_3( double array2D[100][100], double array3D[][100][100], int index3D
void d_1_to_2( double array1D[100], double array2D[][100], int index2D)
{
for (register int i=0; i<=99; i++)
for (int i=0; i<=99; i++)
{
array2D[index2D][i]=array1D[i];
}
@ -96,7 +96,7 @@ void d_1_to_2( double array1D[100], double array2D[][100], int index2D)
void d_1_to_1( double array1[100], double array2[100] )
{
for (register int i=0; i<=99; i++)
for (int i=0; i<=99; i++)
{
array2[i]=array1[i];
}
@ -104,7 +104,7 @@ void d_1_to_1( double array1[100], double array2[100] )
void i_1_to_2( int array1D[100], int array2D[][100], int index2D)
{
for (register int i=0; i<=99; i++)
for (int i=0; i<=99; i++)
{
array2D[index2D][i]=array1D[i];
}