Removed forced -g compile flag.
Fixed a couple compiler warnings.
This commit is contained in:
parent
005eab5ed7
commit
685895dce4
3 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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.
|
||||
//
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue