]> git.mxchange.org Git - flightgear.git/commitdiff
Removed forced -g compile flag.
authorcurt <curt>
Wed, 17 Mar 1999 23:48:16 +0000 (23:48 +0000)
committercurt <curt>
Wed, 17 Mar 1999 23:48:16 +0000 (23:48 +0000)
Fixed a couple compiler warnings.

Array/Makefile.am
Array/array.cxx
Array/testarray.cxx

index ea97e0d5fe23e976e6b9ad4c2f44fef746a58cd0..8f9897423113a6d97e8645ff7be101f0ac56a377 100644 (file)
@@ -18,5 +18,5 @@ INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib
 # We can't build this with "-O2" (optimization) since this causes a seg fault
 # I haven't found a way to strip this out of the CXXFLAGS, so I'm just
 # setting it to "-g"
-CXXFLAGS = -g
+CXXFLAGS = -g
 
index 200fcdc5742c643405435772b56e2620f745817a..ad875f5871cafafae0839940d9e39fbd8fd247e4 100644 (file)
@@ -110,10 +110,6 @@ FGArray::close() {
 // parse Array file
 int
 FGArray::parse() {
-    int i;
-
-    // cur_col = 0;
-
     *in >> originx >> originy;
     *in >> cols >> col_step;
     *in >> rows >> row_step;
@@ -191,6 +187,7 @@ void FGArray::fit( double error ) {
     outputmesh_set_pt(colmax, rowmin, in_data[colmax][rowmin]);
 
     cout << "  Beginning best fit procedure" << endl;
+    lasty = 0;
 
     for ( row = rowmin; row < rowmax; row++ ) {
        // fit  = fopen("fit.dat",  "w");
@@ -552,6 +549,10 @@ FGArray::~FGArray( void ) {
 
 
 // $Log$
+// Revision 1.3  1999/03/17 23:48:17  curt
+// Removed forced -g compile flag.
+// Fixed a couple compiler warnings.
+//
 // Revision 1.2  1999/03/13 23:50:26  curt
 // Tweaked output formatting a bit.
 //
index de6e96abab98ed6dbbf0d5213fc53aad36ce48e8..9d65c0bf79898f5fa2b45b9b6819543c73cb46f6 100644 (file)
@@ -31,7 +31,7 @@ main(int argc, char **argv) {
 
     lon *= 3600;
     lat *= 3600;
-    cout << a.interpolate_altitude(lon, lat) << endl;
+    cout << "  " << a.interpolate_altitude(lon, lat) << endl;
 
     a.fit( 100 );
 }