From c8ec15b9e793879aa6d59dd3ee669a95facc043e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Martign=C3=A8ne?= Date: Wed, 3 Nov 2021 07:43:15 +0100 Subject: [PATCH] Fix non-standard forward declaration of RtcMode --- src/tycommander/board.hpp | 2 +- src/tycommander/main_window.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tycommander/board.hpp b/src/tycommander/board.hpp index 2ed12af..9133949 100644 --- a/src/tycommander/board.hpp +++ b/src/tycommander/board.hpp @@ -42,7 +42,7 @@ struct BoardInterfaceInfo { bool open; }; -enum RtcMode { +enum RtcMode : int { RTC_LOCALTIME, RTC_UTC, RTC_IGNORE diff --git a/src/tycommander/main_window.hpp b/src/tycommander/main_window.hpp index 23e398f..d09aadf 100644 --- a/src/tycommander/main_window.hpp +++ b/src/tycommander/main_window.hpp @@ -24,7 +24,7 @@ class AboutDialog; class ArduinoDialog; class Board; class Monitor; -enum RtcMode; +enum RtcMode : int; class MainWindow : public QMainWindow, private Ui::MainWindow { Q_OBJECT