This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Threaded implementatioon
- To: "Anthony Williams" <anthony at anthonyw dot cjb dot net>
- Subject: Re: Threaded implementatioon
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 06 Apr 2000 17:21:39 -0700
- Cc: <libstdc++ at sourceware dot cygnus dot com>
- References: <002a01bf9faa$001e0f90$5919cac2@derwent.co.uk>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
"Anthony Williams" <anthony_w.geo@yahoo.com> writes:
> Does anyone know how to get rid of the following warning, which
> plagues my C++ code when I compile with -pthreads? (gcc & libstdc++-3
> are installed in /export/home/cms/localtest )
>
>
> /export/home/cms/localtest/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../
> ./../../include/g++-v3/bits/stl_threads.h: At top level:
> /export/home/cms/localtest/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../
> ./../../include/g++-v3/bits/stl_threads.h: In instantiation of
> `std::_Swap_lock_struct<0>::_S_swap_lock':
> /export/home/cms/localtest/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../
> ./../../include/g++-v3/bits/stl_threads.h:147: instantiated from
> here
> /export/home/cms/localtest/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../
> ./../../include/g++-v3/bits/stl_threads.h:141: warning: aggregate has
> a partly bracketed initializer
Create an appropriate macro PTHREAD_MUTEX_INITIALIZER with all the
required brackets. The people at Sun cannot do this so you have to do
it.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------