From 8e8ad1c49159b4da3fd1c180c2ecfaa04dea2444 Mon Sep 17 00:00:00 2001
From: Matthias Puchner <github@mpuchner.de>
Date: Tue, 1 Feb 2022 14:00:19 +0100
Subject: [PATCH] fix GCC warnings/errors

---
 GUI/Model/Item/BackgroundItems.h         | 2 +-
 GUI/Model/Item/DistributionItems.h       | 1 +
 GUI/Model/Item/FootprintItems.h          | 2 +-
 GUI/Model/Item/ResolutionFunctionItems.h | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/GUI/Model/Item/BackgroundItems.h b/GUI/Model/Item/BackgroundItems.h
index 0cc1bcd5ae0..4b3cca613bf 100644
--- a/GUI/Model/Item/BackgroundItems.h
+++ b/GUI/Model/Item/BackgroundItems.h
@@ -26,7 +26,7 @@ public:
     virtual ~BackgroundItem() = default;
 
     virtual std::unique_ptr<IBackground> createBackground() const = 0;
-    virtual void serialize(Serializer& s) {}
+    virtual void serialize(Serializer&) {}
 };
 
 class NoBackgroundItem : public BackgroundItem {
diff --git a/GUI/Model/Item/DistributionItems.h b/GUI/Model/Item/DistributionItems.h
index 563a84f269c..e0363114de8 100644
--- a/GUI/Model/Item/DistributionItems.h
+++ b/GUI/Model/Item/DistributionItems.h
@@ -18,6 +18,7 @@
 #include "GUI/Model/Types/DoubleProperty.h"
 #include "GUI/Model/Types/UIntProperty.h"
 #include <QVector>
+#include <memory>
 
 class IDistribution1D;
 class IRangedDistribution;
diff --git a/GUI/Model/Item/FootprintItems.h b/GUI/Model/Item/FootprintItems.h
index 4acaf506444..8243d103f77 100644
--- a/GUI/Model/Item/FootprintItems.h
+++ b/GUI/Model/Item/FootprintItems.h
@@ -23,7 +23,7 @@ class Serializer;
 class FootprintItem {
 public:
     virtual ~FootprintItem() = default;
-    virtual void serialize(Serializer& s){};
+    virtual void serialize(Serializer&){};
     virtual std::unique_ptr<IFootprintFactor> createFootprint() const = 0;
 };
 
diff --git a/GUI/Model/Item/ResolutionFunctionItems.h b/GUI/Model/Item/ResolutionFunctionItems.h
index 61d6e69c21e..1d8bd6b6d9e 100644
--- a/GUI/Model/Item/ResolutionFunctionItems.h
+++ b/GUI/Model/Item/ResolutionFunctionItems.h
@@ -33,7 +33,7 @@ public:
     void setUnit(const std::variant<QString, Unit>& unit) { m_unit = unit; }
     std::variant<QString, Unit> unit() const { return m_unit; }
 
-    virtual void serialize(Serializer& s){};
+    virtual void serialize(Serializer&){};
 
 protected:
     std::variant<QString, Unit> m_unit;
-- 
GitLab