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
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:
10
src/dcfg.c
10
src/dcfg.c
@@ -61,12 +61,12 @@ typedef struct {
|
|||||||
# define PTHREAD_MUTEX_RECURSIVE_NP 0
|
# define PTHREAD_MUTEX_RECURSIVE_NP 0
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
static void pthread_mutex_init(pthread_mutex_t *m, void *data) { }
|
static void pthread_mutex_init(pthread_mutex_t *m, void *data) { (void)m; (void)data; }
|
||||||
static void pthread_mutex_destroy(pthread_mutex_t *m) { }
|
static void pthread_mutex_destroy(pthread_mutex_t *m) { (void)m; }
|
||||||
static void pthread_mutex_lock(pthread_mutex_t *m) { }
|
static void pthread_mutex_lock(pthread_mutex_t *m) { (void)m; }
|
||||||
static void pthread_mutex_unlock(pthread_mutex_t *m) { }
|
static void pthread_mutex_unlock(pthread_mutex_t *m) { (void)m; }
|
||||||
void pthread_mutexattr_init(pthread_mutexattr_t *attr);
|
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
|
#endif
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
Reference in New Issue
Block a user