From 685895dce464353f170caa424a7b6c98375b8286 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 17 Mar 1999 23:48:16 +0000 Subject: [PATCH] Removed forced -g compile flag. Fixed a couple compiler warnings. --- Array/Makefile.am | 2 +- Array/array.cxx | 9 +++++---- Array/testarray.cxx | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Array/Makefile.am b/Array/Makefile.am index ea97e0d5f..8f9897423 100644 --- a/Array/Makefile.am +++ b/Array/Makefile.am @@ -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 diff --git a/Array/array.cxx b/Array/array.cxx index 200fcdc57..ad875f587 100644 --- a/Array/array.cxx +++ b/Array/array.cxx @@ -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. // diff --git a/Array/testarray.cxx b/Array/testarray.cxx index de6e96aba..9d65c0bf7 100644 --- a/Array/testarray.cxx +++ b/Array/testarray.cxx @@ -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 ); } -- 2.39.2