Skip to content

Commit

Permalink
Define _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING to suppress warn…
Browse files Browse the repository at this point in the history
…ing C4996 (#433)

micro _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING
  • Loading branch information
roeas authored Dec 5, 2023
1 parent 46417aa commit a7059dd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Engine/Auto/Scripts/editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ project("Editor")

if ENABLE_SPDLOG then
defines {
"SPDLOG_ENABLE", "SPDLOG_NO_EXCEPTIONS", "FMT_USE_NONTYPE_TEMPLATE_ARGS=0",
-- TODO : Remove _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING after spdlog updates the format to the right version.
"SPDLOG_ENABLE", "SPDLOG_NO_EXCEPTIONS", "FMT_USE_NONTYPE_TEMPLATE_ARGS=0", "_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING",
}

includedirs {
Expand Down
3 changes: 2 additions & 1 deletion Engine/Auto/Scripts/engine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ project("Engine")
}

defines {
"SPDLOG_ENABLE", "SPDLOG_NO_EXCEPTIONS", "FMT_USE_NONTYPE_TEMPLATE_ARGS=0",
-- TODO : Remove _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING after spdlog updates the format to the right version.
"SPDLOG_ENABLE", "SPDLOG_NO_EXCEPTIONS", "FMT_USE_NONTYPE_TEMPLATE_ARGS=0", "_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING",
}
end

Expand Down
6 changes: 3 additions & 3 deletions Engine/Source/Runtime/Log/Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

#ifdef SPDLOG_ENABLE

#include "spdlog/sinks/basic_file_sink.h"
#include "spdlog/sinks/ostream_sink.h"
#include "spdlog/sinks/stdout_color_sinks.h"
#include <spdlog/sinks/basic_file_sink.h>
#include <spdlog/sinks/ostream_sink.h>
#include <spdlog/sinks/stdout_color_sinks.h>

namespace engine
{
Expand Down
1 change: 0 additions & 1 deletion Engine/Source/Runtime/Log/Log.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <spdlog/spdlog.h>
#include <spdlog/fmt/ostr.h>

// #include <format>
#include <sstream>

namespace engine
Expand Down

0 comments on commit a7059dd

Please sign in to comment.