From cf3e79ee463306dadf51eacc6cc1de853388cc26 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 30 Dec 2002 22:21:31 +0000 Subject: [PATCH] Cleanup from Norman Vine to prevent compiler warnings. He also writes: Note I believe there was a 'missing comma' in the next to last row also --- src/Environment/environment.cxx | 46 ++++++++++++++-------------- src/Instrumentation/altimeter.cxx | 50 +++++++++++++++---------------- 2 files changed, 48 insertions(+), 48 deletions(-) diff --git a/src/Environment/environment.cxx b/src/Environment/environment.cxx index a8de3c3a9..f5e5a5f0c 100644 --- a/src/Environment/environment.cxx +++ b/src/Environment/environment.cxx @@ -285,29 +285,29 @@ FGEnvironment::set_elevation_ft (double e) // Elevation (ft), temperature factor (degK), pressure factor (inHG) static double atmosphere_data[][3] = { - 0.00, 1.00, 1.000, - 2952.76, 0.98, 0.898, - 5905.51, 0.96, 0.804, - 8858.27, 0.94, 0.719, - 11811.02, 0.92, 0.641, - 14763.78, 0.90, 0.570, - 17716.54, 0.88, 0.506, - 20669.29, 0.86, 0.447, - 23622.05, 0.84, 0.394, - 26574.80, 0.82, 0.347, - 29527.56, 0.80, 0.304, - 32480.31, 0.78, 0.266, - 35433.07, 0.76, 0.231, - 38385.83, 0.75, 0.201, - 41338.58, 0.75, 0.174, - 44291.34, 0.75, 0.151, - 47244.09, 0.75, 0.131, - 50196.85, 0.75, 0.114, - 53149.61, 0.75, 0.099, - 56102.36, 0.75, 0.086, - 59055.12, 0.75, 0.075, - 62007.87, 0.75, 0.065, - -1, -1, -1 + { 0.00, 1.00, 1.000 }, + { 2952.76, 0.98, 0.898 }, + { 5905.51, 0.96, 0.804 }, + { 8858.27, 0.94, 0.719 }, + { 11811.02, 0.92, 0.641 }, + { 14763.78, 0.90, 0.570 }, + { 17716.54, 0.88, 0.506 }, + { 20669.29, 0.86, 0.447 }, + { 23622.05, 0.84, 0.394 }, + { 26574.80, 0.82, 0.347 }, + { 29527.56, 0.80, 0.304 }, + { 32480.31, 0.78, 0.266 }, + { 35433.07, 0.76, 0.231 }, + { 38385.83, 0.75, 0.201 }, + { 41338.58, 0.75, 0.174 }, + { 44291.34, 0.75, 0.151 }, + { 47244.09, 0.75, 0.131 }, + { 50196.85, 0.75, 0.114 }, + { 53149.61, 0.75, 0.099 }, + { 56102.36, 0.75, 0.086 }, + { 59055.12, 0.75, 0.075 }, + { 62007.87, 0.75, 0.065 }, + { -1, -1, -1 } }; void diff --git a/src/Instrumentation/altimeter.cxx b/src/Instrumentation/altimeter.cxx index 08cfcb36e..cf15be1f0 100644 --- a/src/Instrumentation/altimeter.cxx +++ b/src/Instrumentation/altimeter.cxx @@ -13,31 +13,31 @@ // Altitude based on pressure difference from sea level. // pressure difference inHG, altitude ft static double altitude_data[][2] = { - -8.41, -8858.27, - 0.00, 0.00, - 3.05, 2952.76, - 5.86, 5905.51, - 8.41, 8858.27, - 10.74, 11811.02, - 12.87, 14763.78, - 14.78, 17716.54, - 16.55, 20669.29, - 18.13, 23622.05, - 19.62, 26574.80, - 20.82, 29527.56, - 21.96, 32480.31, - 23.01, 35433.07, - 23.91, 38385.83, - 24.71, 41338.58, - 25.40, 44291.34, - 26.00, 47244.09, - 26.51, 50196.85, - 26.96, 53149.61, - 27.35, 56102.36, - 27.68, 59055.12, - 27.98, 62007.87, - 29.62, 100000.00 // just to fill it in - -1, -1, + { -8.41, -8858.27 }, + { 0.00, 0.00 }, + { 3.05, 2952.76 }, + { 5.86, 5905.51 }, + { 8.41, 8858.27 }, + { 10.74, 11811.02 }, + { 12.87, 14763.78 }, + { 14.78, 17716.54 }, + { 16.55, 20669.29 }, + { 18.13, 23622.05 }, + { 19.62, 26574.80 }, + { 20.82, 29527.56 }, + { 21.96, 32480.31 }, + { 23.01, 35433.07 }, + { 23.91, 38385.83 }, + { 24.71, 41338.58 }, + { 25.40, 44291.34 }, + { 26.00, 47244.09 }, + { 26.51, 50196.85 }, + { 26.96, 53149.61 }, + { 27.35, 56102.36 }, + { 27.68, 59055.12 }, + { 27.98, 62007.87 }, + { 29.62, 100000.00 }, // just to fill it in + { -1, -1 } }; -- 2.39.5