freebsd-ports/deskutils/charmtimetracker/files/patch-Charm_Lotsofcake_Configuration.h
Adriaan de Groot 0536ebab0c Fix build of deskutils/charmtimetracker with clang7. The patches contain
an explanation of the error (but I don't know why clang7 complains like
this or why writing out what looks like a default constructor to me
gets it to be quiet).

No PORTREVISION because it doesn't make a difference on any platform
that already built successfully.
2018-09-03 19:10:43 +00:00

16 lines
533 B
C++

Fix build with clang7:
WeeklyTimesheet.cpp:287:37: error: default initialization of an object of const type 'const Lotsofcake::Configuration' requires a user-provided default constructor
const Lotsofcake::Configuration configuration;
--- Charm/Lotsofcake/Configuration.h.orig 2018-09-03 18:53:17 UTC
+++ Charm/Lotsofcake/Configuration.h
@@ -36,6 +36,8 @@ namespace Lotsofcake {
class Configuration
{
public:
+ Configuration();
+
bool isConfigured() const;
void importFromTaskExport(const TaskExport &exporter);