From ed70347f4a75b83e37cfb31a76b40843fbe6705b Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Fri, 3 Nov 2023 11:48:39 +0100 Subject: [PATCH] Fix compiler warnings --- meson.build | 4 +++- meson_options.txt | 2 +- src/patchmatrix_db.c | 4 ++-- src/patchmatrix_nk.c | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/meson.build b/meson.build index 2838878..3d66d6c 100644 --- a/meson.build +++ b/meson.build @@ -64,7 +64,9 @@ c_args = [ '-fvisibility=hidden', '-ffast-math', '-Wno-unused-parameter', - '-Wno-unused-function'] + '-Wno-unused-function', + '-Wno-unknown-warning-option', + '-Wno-null-pointer-subtraction'] dsp_srcs = [ join_paths('src', 'patchmatrix.c'), diff --git a/meson_options.txt b/meson_options.txt index 9676605..e72b3bf 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -5,4 +5,4 @@ option('build-tests', type : 'boolean', value : true) -option('version', type : 'string', value : '0.27.39') +option('version', type : 'string', value : '0.27.41') diff --git a/src/patchmatrix_db.c b/src/patchmatrix_db.c index 69f5765..f161bcd 100644 --- a/src/patchmatrix_db.c +++ b/src/patchmatrix_db.c @@ -726,7 +726,7 @@ _port_find_by_body(app_t *app, jack_port_t *body) void _mixer_spawn(app_t *app, unsigned nsinks, unsigned nsources) { - pthread_t pid = vfork(); + pid_t pid = vfork(); if(pid == 0) // child { char sink_nums[32]; @@ -786,7 +786,7 @@ _mixer_free(mixer_shm_t *mixer_shm) void _monitor_spawn(app_t *app, unsigned nsinks) { - pthread_t pid = vfork(); + pid_t pid = vfork(); if(pid == 0) // child { char sink_nums [32]; diff --git a/src/patchmatrix_nk.c b/src/patchmatrix_nk.c index 3bccbb7..e48b440 100644 --- a/src/patchmatrix_nk.c +++ b/src/patchmatrix_nk.c @@ -1274,7 +1274,7 @@ _get_path(const char *data_dir, const char *fn) } static const char * -_get_data_dir() +_get_data_dir(void) { // check whether build-time defined data dir exists DIR *dir = opendir(PATCHMATRIX_DATA_DIR); -- 2.38.5