mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
- Migrated old compiler flags for better warnings, etc
This commit is contained in:
parent
37bdfe06da
commit
65c2fe438f
4 changed files with 7 additions and 1 deletions
|
@ -86,7 +86,7 @@ void Config::createDefault (const std::string& file)
|
||||||
if (taskDir != "")
|
if (taskDir != "")
|
||||||
{
|
{
|
||||||
FILE* out;
|
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, "data.location=%s\n", taskDir.c_str ());
|
||||||
fprintf (out, "command.logging=off\n");
|
fprintf (out, "command.logging=off\n");
|
||||||
|
|
|
@ -399,6 +399,8 @@ bool Grid::Cell::operator== (const Grid::Cell& rhs) const
|
||||||
case CELL_STRING: return mString == rhs.mString ? true : false;
|
case CELL_STRING: return mString == rhs.mString ? true : false;
|
||||||
default: break; // To prevent warnings.
|
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;
|
case CELL_STRING: return mString != rhs.mString ? true : false;
|
||||||
default: break; // To prevent warnings.
|
default: break; // To prevent warnings.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
bin_PROGRAMS = task
|
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
|
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
|
||||||
|
|
|
@ -155,6 +155,7 @@ target_alias = @target_alias@
|
||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
top_srcdir = @top_srcdir@
|
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
|
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
|
all: all-am
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue