From 36b5237d4d3088e5cd344b552dfe70169e7dee42 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 11 May 2019 19:30:06 +0200 Subject: fix GCC warnings --- compat/timer.cpp | 2 +- compat/tr.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'compat') diff --git a/compat/timer.cpp b/compat/timer.cpp index 84ea44e6..f60e4f62 100644 --- a/compat/timer.cpp +++ b/compat/timer.cpp @@ -107,7 +107,7 @@ void Timer::gettime(timespec* ts) { int error = clock_gettime(CLOCK_MONOTONIC, ts); assert(error == 0 && "clock_gettime failed"); -}; +} #endif diff --git a/compat/tr.hpp b/compat/tr.hpp index 4504f791..c5a561e7 100644 --- a/compat/tr.hpp +++ b/compat/tr.hpp @@ -8,7 +8,7 @@ struct TR : QObject { TR() = default; - TR(const TR&) {} + TR(const TR&) : QObject(nullptr) {} TR& operator=(const TR&) { return *this; } }; -- cgit v1.2.3