Hopefully shut the compiler up on ubuntu
Some checks failed
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=OFF (push) Failing after 10s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=OFF (push) Failing after 10s
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=ON (push) Failing after 11s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=ON (push) Failing after 12s
CMake / ubuntu-latest - shared=OFF, pthread=ON, posix=ON (push) Failing after 14s
CMake / ubuntu-latest - shared=ON, pthread=ON, posix=ON (push) Failing after 11s

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-08-09 08:35:32 +03:00
parent 8c1694d3d9
commit 41badf33d9

View File

@@ -61,12 +61,12 @@ typedef struct {
# define PTHREAD_MUTEX_RECURSIVE_NP 0
# endif
static void pthread_mutex_init(pthread_mutex_t *m, void *data) { }
static void pthread_mutex_destroy(pthread_mutex_t *m) { }
static void pthread_mutex_lock(pthread_mutex_t *m) { }
static void pthread_mutex_unlock(pthread_mutex_t *m) { }
static void pthread_mutex_init(pthread_mutex_t *m, void *data) { (void)m; (void)data; }
static void pthread_mutex_destroy(pthread_mutex_t *m) { (void)m; }
static void pthread_mutex_lock(pthread_mutex_t *m) { (void)m; }
static void pthread_mutex_unlock(pthread_mutex_t *m) { (void)m; }
void pthread_mutexattr_init(pthread_mutexattr_t *attr);
static void pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type) { }
static void pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type) { (void)attr; (void)type; }
#endif
#include <assert.h>