2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-16 06:57:21 +01:00

Merge branch 'a1batross-waf-2.1-patch-93534' into 'waf-2.1'

extras: pthread: fix check for C mode with paranoid -Werror=old-style-declaration and -Werror=unused-variable

See merge request ita1024/waf!2365
This commit is contained in:
ita1024 2024-01-24 23:38:32 +00:00
commit 53ca5a71ed

View File

@ -9,13 +9,17 @@ PTHREAD_CHECK = '''
#include <pthread.h>
static void* fun(void* params) {
(void)params;
return NULL;
}
int main() {
int main(int argc, char **argv) {
pthread_t thread;
(void)argc;
(void)argv;
pthread_create(&thread, NULL, &fun, NULL);
pthread_join(thread, NULL);
return 0;
}
'''