We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44c9808 commit b262184Copy full SHA for b262184
src/noise.h
@@ -29,6 +29,13 @@
29
#include "exceptions.h"
30
#include "util/string.h"
31
32
+#if defined(RANDOM_MIN)
33
+#undef RANDOM_MIN
34
+#endif
35
+#if defined(RANDOM_MAX)
36
+#undef RANDOM_MAX
37
38
+
39
extern FlagDesc flagdesc_noiseparams[];
40
41
// Note: this class is not polymorphic so that its high level of
src/threading/thread.cpp
@@ -219,7 +219,7 @@ void Thread::setName(const std::string &name)
219
220
#elif defined(__NetBSD__)
221
222
- pthread_setname_np(pthread_self(), name.c_str());
+ pthread_setname_np(pthread_self(), "%s", const_cast<char*>(name.c_str()));
223
224
#elif defined(__APPLE__)
225
0 commit comments