mirror of https://gitlab.com/ita1024/waf.git
extras: pthread: fix check for C mode with paranoid -Werror=old-style-declaration and -Werror=unused-variable
This commit is contained in:
parent
a23b3f5e9b
commit
611cd30114
|
@ -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;
|
||||
}
|
||||
'''
|
||||
|
||||
|
|
Loading…
Reference in New Issue