[Base] fix a -Wunused CI compiler warning

This commit is contained in:
Uwe
2022-07-09 16:23:04 +02:00
parent 4bbd240e5f
commit ea0c3e8598
2 changed files with 3 additions and 5 deletions

View File

@@ -25,7 +25,7 @@
#ifndef _PreComp_
# ifdef FC_OS_WIN32
# include <windows.h>
# include <windows.h>
# endif
# include <cstring>
# include <Python.h>

View File

@@ -21,15 +21,13 @@
* *
***************************************************************************/
#ifndef BASE_CONSOLEOBSERVER_H
#define BASE_CONSOLEOBSERVER_H
#include <Base/Console.h>
#include <Base/Stream.h>
namespace Base {
//=========================================================================
@@ -101,8 +99,8 @@ conObs(co)
ILoggerBlocker::~ILoggerBlocker()
{
auto debug = Console().SetEnabledMsgType(conObs, msgTypesBlocked, true);
#ifdef FC_DEBUG
auto debug = Console().SetEnabledMsgType(conObs, msgTypesBlocked, true);
if (debug != msgTypesBlocked)
Console().Warning("Enabled message types have been changed while ILoggerBlocker was set\n");
#endif