aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authoradridg <adridg@FreeBSD.org>2018-09-04 03:10:43 +0800
committeradridg <adridg@FreeBSD.org>2018-09-04 03:10:43 +0800
commit5c86eb388107ff9a7667e79751c52382e4c65766 (patch)
treecc0b3414bea8d948d372f0b3f29bd770c76e2dcc /deskutils
parent6163edce211f65a6dcf98643b33ccc08ab7c5e01 (diff)
downloadfreebsd-ports-gnome-5c86eb388107ff9a7667e79751c52382e4c65766.tar.gz
freebsd-ports-gnome-5c86eb388107ff9a7667e79751c52382e4c65766.tar.zst
freebsd-ports-gnome-5c86eb388107ff9a7667e79751c52382e4c65766.zip
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.
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/charmtimetracker/files/patch-Charm_Lotsofcake_Configuration.cpp18
-rw-r--r--deskutils/charmtimetracker/files/patch-Charm_Lotsofcake_Configuration.h16
2 files changed, 34 insertions, 0 deletions
diff --git a/deskutils/charmtimetracker/files/patch-Charm_Lotsofcake_Configuration.cpp b/deskutils/charmtimetracker/files/patch-Charm_Lotsofcake_Configuration.cpp
new file mode 100644
index 000000000000..90b7eee273d6
--- /dev/null
+++ b/deskutils/charmtimetracker/files/patch-Charm_Lotsofcake_Configuration.cpp
@@ -0,0 +1,18 @@
+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.cpp.orig 2018-09-03 18:53:25 UTC
++++ Charm/Lotsofcake/Configuration.cpp
+@@ -43,6 +43,10 @@ static void setValueIfNotNull(QSettings
+ }
+ }
+
++Lotsofcake::Configuration::Configuration()
++{
++}
++
+ bool Lotsofcake::Configuration::isConfigured() const
+ {
+ return !username().isEmpty();
diff --git a/deskutils/charmtimetracker/files/patch-Charm_Lotsofcake_Configuration.h b/deskutils/charmtimetracker/files/patch-Charm_Lotsofcake_Configuration.h
new file mode 100644
index 000000000000..2c0563c76498
--- /dev/null
+++ b/deskutils/charmtimetracker/files/patch-Charm_Lotsofcake_Configuration.h
@@ -0,0 +1,16 @@
+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);