[Base] fix a -Wunused CI compiler warning
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
#ifndef _PreComp_
|
||||
# ifdef FC_OS_WIN32
|
||||
# include <windows.h>
|
||||
# include <windows.h>
|
||||
# endif
|
||||
# include <cstring>
|
||||
# include <Python.h>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user