-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.txt
32 lines (32 loc) · 1.55 KB
/
output.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
main.c:5:16: error: parameter 1 (‘vargp’) has incomplete type
void func(void vargp)
^~~~~
main.c: In function ‘func’:
main.c:9:34: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘double’ [-Wformat=]
printf("sqrt(16) IS %d", sqrt(16));
~^
%f
main.c:10:24: warning: ‘return’ with a value, in function returning void
return NULL;
^~~~
main.c:5:6: note: declared here
void func(void vargp)
^~~~
main.c: In function ‘main’:
main.c:15:17: error: unknown type name ‘pthread_t’
pthread_t t;
^~~~~~~~~
main.c:17:17: warning: implicit declaration of function ‘pthread_create’ [-Wimplicit-function-declaration]
pthread_create(&t, NULL, func, NULL);
^~~~~~~~~~~~~~
main.c:18:17: warning: implicit declaration of function ‘pthread_join’ [-Wimplicit-function-declaration]
pthread_join(t, NULL);
^~~~~~~~~~~~
main.c:20:17: warning: implicit declaration of function ‘pthread_exit’ [-Wimplicit-function-declaration]
pthread_exit(NULL);
^~~~~~~~~~~~
main.c:22:9: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
exit(0);
^~~~
main.c:22:9: warning: incompatible implicit declaration of built-in function ‘exit’
main.c:22:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’