Open extinguish opened 1 year ago
This is obviously correct, but I do get a few more errors when trying to compile the test.
../../../stress/threads/sem_open/s-c1.c: In function ‘main’:
../../../stress/threads/sem_open/s-c1.c:114:14: warning: unused parameter ‘argc’ [-Wunused-parameter]
114 | int main(int argc, char *argv[])
| ~~~~^~~~
../../../stress/threads/sem_open/s-c1.c:114:26: warning: unused parameter ‘argv’ [-Wunused-parameter]
114 | int main(int argc, char *argv[])
| ~~~~~~^~~~~~
The main should be defined as int main(void)
and it fails to compile too because of missing -lm
for me, I guess that it's missing LDLIBS file with -lm
somewhere.
Can you please fix these two problems too?
the sem_open/s-c1.c has build warning, fix the build warning by remove the "static" declaration of "struct row"
Signed-off-by: guoshichao guoshichao@xiaomi.com