Fix some FDM warnings with Clang
This commit is contained in:
parent
e5c6d14cef
commit
078366cbf7
2 changed files with 7 additions and 7 deletions
|
@ -31,7 +31,7 @@ class FGADA: public FGInterface {
|
||||||
private:
|
private:
|
||||||
|
|
||||||
SGSocket *fdmsock;
|
SGSocket *fdmsock;
|
||||||
|
#if 0
|
||||||
// Auxilliary Flight Model parameters, basically for HUD
|
// Auxilliary Flight Model parameters, basically for HUD
|
||||||
double aux1; // auxilliary flag
|
double aux1; // auxilliary flag
|
||||||
double aux2; // auxilliary flag
|
double aux2; // auxilliary flag
|
||||||
|
@ -63,7 +63,7 @@ private:
|
||||||
int iaux10; // auxilliary flag
|
int iaux10; // auxilliary flag
|
||||||
int iaux11; // auxilliary flag
|
int iaux11; // auxilliary flag
|
||||||
int iaux12; // auxilliary flag
|
int iaux12; // auxilliary flag
|
||||||
|
#endif
|
||||||
// copy FDM state to FGADA structures
|
// copy FDM state to FGADA structures
|
||||||
bool copy_to_FGADA();
|
bool copy_to_FGADA();
|
||||||
|
|
||||||
|
|
|
@ -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)
|
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];
|
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)
|
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];
|
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] )
|
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];
|
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)
|
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];
|
array2D[index2D][i]=array1D[i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue