From 5cbe2c6ae59f088565d3c7cad7b3c6474b863e61 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 29 Dec 2018 00:54:04 +0100 Subject: [PATCH] Reorder tracy_lz4.cpp vs TracyProfiler.cpp in TracyClient.cpp. This fixes deprecation warning in tracy_lz4.hpp, which was previously present due to TracyProfiler.cpp including tracy_lz4.hpp before an appropriate deprecation restraining macro was defined in tracy_lz4.cpp. Note that this issue was only present if TracyClient.cpp was used to include the profiler in a project. Including the profiler as a collection of separate source files worked correctly, as the deprecated function is only used by tracy_lz4.cpp. --- TracyClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TracyClient.cpp b/TracyClient.cpp index 8f465650..a552c298 100644 --- a/TracyClient.cpp +++ b/TracyClient.cpp @@ -15,9 +15,9 @@ #ifdef TRACY_ENABLE +#include "common/tracy_lz4.cpp" #include "client/TracyProfiler.cpp" #include "client/TracyCallstack.cpp" -#include "common/tracy_lz4.cpp" #include "common/TracySocket.cpp" #include "client/tracy_rpmalloc.cpp"