commit fac592f1ea6961c2dc8066a77679a6d0685db477
parent 8237e8961f34fc0902be25c05c9efa83c9b7bd91
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date: Tue, 12 Aug 2025 13:58:01 +0100
Merge branch 'master' of tronto.net:nissy-core into windows
Diffstat:
4 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -40,3 +40,6 @@ tools/results
*.s
*.pyd
*.dll
+*.exp
+*.lib
+*.pdb
diff --git a/src/utils/compilers.h b/src/utils/compilers.h
@@ -0,0 +1,13 @@
+#if defined(__GNUC__)
+
+#define unused __attribute__((unused))
+
+#elif defined(__clang__)
+
+#define unused __attribute__((unused))
+
+#else
+
+#define unused
+
+#endif
diff --git a/src/utils/utils.h b/src/utils/utils.h
@@ -1,3 +1,4 @@
+#include "compilers.h"
#include "dbg_log.h"
#include "constants.h"
#include "math.h"
diff --git a/src/utils/wrapthread.h b/src/utils/wrapthread.h
@@ -2,8 +2,8 @@
#define wrapthread_atomic
-#define wrapthread_define_var_thread_t(x) char x; (void)(x)
-#define wrapthread_define_var_mutex_t(x) char x; (void)(x)
+#define wrapthread_define_var_thread_t(x) unused char x
+#define wrapthread_define_var_mutex_t(x) unused char x
#define wrapthread_define_struct_thread_t(x) char x
#define wrapthread_define_struct_mutex_t(x) char x