From 245e35b6a3648dce9ad7bbf386fac0d9551ac664 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 27 Apr 2021 00:28:09 +0200 Subject: [PATCH] meson: Fix argp detection, prevent Werror=return-type --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 72f8c57..5fa7386 100644 --- a/meson.build +++ b/meson.build @@ -28,7 +28,7 @@ endif curl_dep = dependency('libcurl') -if build_machine.system() == 'darwin' or build_machine.system() == 'freebsd' or not cc.links('#include \nstatic error_t parse_opt (int key, char *arg, struct argp_state *state) { argp_usage(state); }; void main() {}') +if build_machine.system() == 'darwin' or build_machine.system() == 'freebsd' or not cc.links('#include \nstatic error_t parse_opt (int key, char *arg, struct argp_state *state) { argp_usage(state); return 0; }; void main() {}') argplib = cc.find_library('argp') else argplib = dependency('', required : false) -- 2.30.2