MinGW std:🧵 suppress redundancy warning for non-debug builds

See: #216
This commit is contained in:
Jonathan G Rennison
2021-02-16 14:22:25 +00:00
parent 73be35340d
commit 84eef99eaa
4 changed files with 4 additions and 4 deletions

View File

@@ -484,7 +484,7 @@ using mingw_stdthread::shared_mutex;
#if (__cplusplus < 201402L) || (defined(__MINGW32__ ) && !defined(_GLIBCXX_HAS_GTHREADS))
using mingw_stdthread::shared_timed_mutex;
using mingw_stdthread::shared_lock;
#elif !defined(MINGW_STDTHREAD_REDUNDANCY_WARNING) // Skip repetition
#elif !defined(MINGW_STDTHREAD_REDUNDANCY_WARNING) && defined(_DEBUG) // Skip repetition
#define MINGW_STDTHREAD_REDUNDANCY_WARNING
#pragma message "This version of MinGW seems to include a win32 port of\
pthreads, and probably already has C++ std threading classes implemented,\