From 56d53adf539e73df02e1384e3a8d685307446ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gunter=20K=C3=B6nigsmann?= Date: Sat, 10 Feb 2024 15:31:05 +0100 Subject: [PATCH] Resolved a few warnings --- src/NullLog.h | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/NullLog.h b/src/NullLog.h index c9cd16fef..421f27f50 100644 --- a/src/NullLog.h +++ b/src/NullLog.h @@ -21,29 +21,20 @@ /*!\file - This file defines the class ErrorRedirector that redirects wx Errors to a dialogue - - It is a customized copy of a portion of wxWidget's log.cpp. + This file defines the class NullLog that just ignores log messages it is sent */ #ifndef NULLLOG_H #define NULLLOG_H -#include "precomp.h" #include -#include -//! Redirect error messages (but not warnings) to a second target. +//! Redirect error messages to /dev/null class NullLog : public wxLog { public: - /** - Sets the specified @c logger (which may be NULL) as the default log - target but the log messages are also passed to the previous log target if any. - */ explicit NullLog(); - //! Restores the previous log target virtual ~NullLog() override {} /*! This method is called from the idle loop. @@ -52,9 +43,9 @@ class NullLog : public wxLog */ void Flush() override {} - void DoLogRecord(wxLogLevel level, - const wxString& msg, - const wxLogRecordInfo& info) override {} + void DoLogRecord(wxLogLevel WXUNUSED(level), + const wxString& WXUNUSED(msg), + const wxLogRecordInfo& WXUNUSED(info)) override {} };