]> git.mxchange.org Git - flightgear.git/commitdiff
Cleaned up various warning messages.
authorcurt <curt>
Thu, 14 Jun 2001 22:18:01 +0000 (22:18 +0000)
committercurt <curt>
Thu, 14 Jun 2001 22:18:01 +0000 (22:18 +0000)
src/Main/fg_commands.cxx
src/Main/globals.cxx
src/Main/viewer_lookat.cxx
src/Main/viewer_rph.cxx

index 9303b17727f14e55cdef5540dd2a5334cbffd0f3..312b5fd40491eff40e04be3045de32ebbf7f02af 100644 (file)
@@ -314,20 +314,20 @@ static struct {
   const char * name;
   SGCommandMgr::command_t command;
 } built_ins [] = {
-  "null", do_null,
-  "exit", do_exit,
-  "load", do_load,
-  "save", do_save,
-  "panel-load", do_panel_load,
-  "preferences-load", do_preferences_load,
-  "view-cycle", do_view_cycle,
-  "screen-capture", do_screen_capture,
-  "property-toggle", do_property_toggle,
-  "property-assign", do_property_assign,
-  "property-adjust", do_property_adjust,
-  "property-swap", do_property_swap,
-  "property-scale", do_property_scale,
-  0, 0                         // zero-terminated
+    { "null", do_null },
+    { "exit", do_exit },
+    { "load", do_load },
+    { "save", do_save },
+    { "panel-load", do_panel_load },
+    { "preferences-load", do_preferences_load },
+    { "view-cycle", do_view_cycle },
+    { "screen-capture", do_screen_capture },
+    { "property-toggle", do_property_toggle },
+    { "property-assign", do_property_assign },
+    { "property-adjust", do_property_adjust },
+    { "property-swap", do_property_swap },
+    { "property-scale", do_property_scale },
+    { 0, 0 }                   // zero-terminated
 };
 
 
index ce42e2496c9bd86a19a9e4211c0b8811ef4861cc..9de7fdb4382d6f8c8b878aa3d1032273eddc3e67 100644 (file)
@@ -39,9 +39,9 @@ FGGlobals::FGGlobals() :
     freeze( false ),
     warp( 0 ),
     warp_delta( 0 ),
-    commands(new SGCommandMgr),
     props(new SGPropertyNode),
-    initial_state(0)
+    initial_state(0),
+    commands(new SGCommandMgr)
 {
 }
 
index 06986973a09e523f63caaa49192bc437fb535e06..e45b0f5bb7e7b17686f96cd846a9ab11acef2b04 100644 (file)
@@ -88,6 +88,7 @@ void fgMakeLookAtMat4 ( sgMat4 dst, const sgVec3 eye, const sgVec3 center,
 }
 
 
+#if 0
 // convert sgMat4 to MAT3 and print
 static void print_sgMat4( sgMat4 &in) {
     int i, j;
@@ -98,6 +99,7 @@ static void print_sgMat4( sgMat4 &in) {
        cout << endl;
     }
 }
+#endif
 
 
 // Update the view parameters
index d8ab4c23c0327fe045a7a154b95622a12716515b..7b6aa6ac2bdfe929725dc631fe54d4f375082d7b 100644 (file)
@@ -139,6 +139,7 @@ inline static void fgMakeLOCAL( sgMat4 dst, const double Theta,
 #endif
 
 
+#if 0
 // convert sgMat4 to MAT3 and print
 static void print_sgMat4( sgMat4 &in) {
     int i, j;
@@ -149,6 +150,7 @@ static void print_sgMat4( sgMat4 &in) {
        cout << endl;
     }
 }
+#endif
 
 
 // Update the view parameters