Red Hat Bugzilla – Bug 162722
static mutex initializers are not correct
Last modified: 2007-11-30 17:11:09 EST
Created attachment 116498 [details]
code and error related to fedora core 4 glibc static initalization of mutexes
They are correct, some extra warnings just warn even about correct code.
should shut these warnings up.
Should be fixed in glibc-2.3.90-3.
When will glibc-2.3.90-3 come out?
The latest, 2.3.5-10.3 as of 24/8/05, exhibits the same problem.
glibc-2.3.90-3 came out more than a month ago, but glibc-2.3.90-* is a rawhide
version (i.e. FC5 development ATM; that's why it has been closed with RAWHIDE).
But glibc-2.3.5-10.3 also includes that fix and certainly doesn't exhibit
the problem for me.
When I fix the testcase a little (s/fprint(/fprintf (stderr, /, plus add return
0; at the end of main), I get:
rpm -qf /usr/include/pthread.h; gcc -W -Wall -O2 fc4-gcc4-mutex.c
fc4-gcc4-mutex.c: In function 'main':
fc4-gcc4-mutex.c:8: warning: unused parameter 'argc'
fc4-gcc4-mutex.c:8: warning: unused parameter 'argv'
fc4-gcc4-mutex.c: At top level:
fc4-gcc4-mutex.c:4: warning: 'some_static_mutex' defined but not used
fc4-gcc4-mutex.c:6: warning: 'some_static_condition' defined but not used