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

@@ -536,7 +536,7 @@ namespace std
using mingw_stdthread::cv_status;
using mingw_stdthread::condition_variable;
using mingw_stdthread::condition_variable_any;
#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++11 std threading classes implemented,\

View File

@@ -461,7 +461,7 @@ using mingw_stdthread::recursive_timed_mutex;
using mingw_stdthread::timed_mutex;
using mingw_stdthread::once_flag;
using mingw_stdthread::call_once;
#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++11 std threading classes implemented,\

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,\

View File

@@ -384,7 +384,7 @@ namespace this_thread
{
using namespace mingw_stdthread::this_thread;
}
#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++11 std threading classes implemented,\