From 078366cbf739ecf9c05a5e67e9540ed8aecdd6ad Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 10 Jan 2016 12:55:18 -0600 Subject: [PATCH] Fix some FDM warnings with Clang --- src/FDM/SP/ADA.hxx | 4 ++-- src/FDM/UIUCModel/uiuc_menu_functions.cpp | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/FDM/SP/ADA.hxx b/src/FDM/SP/ADA.hxx index f5e524856..532cfb7f3 100644 --- a/src/FDM/SP/ADA.hxx +++ b/src/FDM/SP/ADA.hxx @@ -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(); diff --git a/src/FDM/UIUCModel/uiuc_menu_functions.cpp b/src/FDM/UIUCModel/uiuc_menu_functions.cpp index 6e8845392..c0dd3b2ef 100644 --- a/src/FDM/UIUCModel/uiuc_menu_functions.cpp +++ b/src/FDM/UIUCModel/uiuc_menu_functions.cpp @@ -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]; } -- 2.39.5