From eb4c7ca9ea83ab211d9ef10bb1c5e7dd02c066cc Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 22 Jun 2019 13:40:00 +0200 Subject: [PATCH] Ignore useless warnings. --- server/TracyFileWrite.hpp | 4 ++++ server/TracyImGui.hpp | 4 ++++ server/TracyPrint.cpp | 4 ++++ server/TracyView.cpp | 4 ++++ server/TracyWorker.cpp | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/server/TracyFileWrite.hpp b/server/TracyFileWrite.hpp index 05901c21..b38ba7a5 100644 --- a/server/TracyFileWrite.hpp +++ b/server/TracyFileWrite.hpp @@ -1,6 +1,10 @@ #ifndef __TRACYFILEWRITE_HPP__ #define __TRACYFILEWRITE_HPP__ +#ifdef _MSC_VER +# pragma warning( disable: 4267 ) // conversion from don't care to whatever, possible loss of data +#endif + #include #include #include diff --git a/server/TracyImGui.hpp b/server/TracyImGui.hpp index fd33efb1..e805867e 100644 --- a/server/TracyImGui.hpp +++ b/server/TracyImGui.hpp @@ -1,6 +1,10 @@ #ifndef __TRACYIMGUI_HPP__ #define __TRACYIMGUI_HPP__ +#ifdef _MSC_VER +# pragma warning( disable: 4244 ) // conversion from don't care to whatever, possible loss of data +#endif + #include "../imgui/imgui.h" #include "../imgui/imgui_internal.h" diff --git a/server/TracyPrint.cpp b/server/TracyPrint.cpp index c9411e45..6cdb9532 100644 --- a/server/TracyPrint.cpp +++ b/server/TracyPrint.cpp @@ -1,3 +1,7 @@ +#ifdef _MSC_VER +# pragma warning( disable: 4244 ) // conversion from don't care to whatever, possible loss of data +#endif + #include #include #include diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 0c39bfb5..fb4a32e2 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1,3 +1,7 @@ +#ifdef _MSC_VER +# pragma warning( disable: 4267 ) // conversion from don't care to whatever, possible loss of data +#endif + #ifdef __MINGW32__ # define __STDC_FORMAT_MACROS #endif diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index a5eb84bd..13ee59d4 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -1,3 +1,7 @@ +#ifdef _MSC_VER +# pragma warning( disable: 4244 4267 ) // conversion from don't care to whatever, possible loss of data +#endif + #ifdef _WIN32 # include #endif