- Migrated old compiler flags for better warnings, etc

This commit is contained in:
Paul Beckingham 2008-05-19 23:28:48 -04:00
parent 37bdfe06da
commit 65c2fe438f
4 changed files with 7 additions and 1 deletions

View file

@ -86,7 +86,7 @@ void Config::createDefault (const std::string& file)
if (taskDir != "")
{
FILE* out;
if (out = fopen (file.c_str (), "w"))
if ((out = fopen (file.c_str (), "w")))
{
fprintf (out, "data.location=%s\n", taskDir.c_str ());
fprintf (out, "command.logging=off\n");

View file

@ -399,6 +399,8 @@ bool Grid::Cell::operator== (const Grid::Cell& rhs) const
case CELL_STRING: return mString == rhs.mString ? true : false;
default: break; // To prevent warnings.
}
return false;
}
////////////////////////////////////////////////////////////////////////////////
@ -414,6 +416,8 @@ bool Grid::Cell::operator!= (const Grid::Cell& rhs) const
case CELL_STRING: return mString != rhs.mString ? true : false;
default: break; // To prevent warnings.
}
return false;
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -1,2 +1,3 @@
bin_PROGRAMS = task
task_SOURCES = Config.cpp Date.cpp T.cpp TDB.cpp Table.cpp Grid.cpp color.cpp parse.cpp task.cpp util.cpp text.cpp rules.cpp Config.h Date.h T.h TDB.h Table.h Grid.h color.h stlmacros.h task.h
AM_CPPFLAGS = -Wall -pedantic -ggdb3 -fno-rtti

View file

@ -155,6 +155,7 @@ target_alias = @target_alias@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
task_SOURCES = Config.cpp Date.cpp T.cpp TDB.cpp Table.cpp Grid.cpp color.cpp parse.cpp task.cpp util.cpp text.cpp rules.cpp Config.h Date.h T.h TDB.h Table.h Grid.h color.h stlmacros.h task.h
AM_CPPFLAGS = -Wall -pedantic -ggdb3 -fno-rtti
all: all-am
.SUFFIXES: