This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: STL warnings recently appeared in the 3.0 branch
- To: gcc at gcc dot gnu dot org
- Subject: Re: STL warnings recently appeared in the 3.0 branch
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Thu, 14 Jun 2001 11:32:22 -0400 (EDT)
- Cc: aoliva at redhat dot com, Sylvain dot Pion at sophia dot inria dot fr
> .../include/g++-v3/bits/stl_alloc.h:494:
> warning: aggregate has a partly bracketed initializer
The warning should be harmless. However to squelch, a define is
needed for __GTHREAD_MUTEX_INIT_DEFAULT if you are using a thread
package that defines __GTHREAD_MUTEX_INIT_FUNCTION. I have installed
an appropriate one in gthr-dce.h. However, defines are needed for
gthr-rtems.h and gthr-win32.h. If you know how the mutex type
is defined for these, it would be greatly be appreciated if a
patch could be developed and tested.
Let me know if you are not using either of these thread models because
this would point to a problem in defining __STL_MUTEX_INITIALIZER in
stl_threads.h.
You have to be careful building v3 because copies of gthr.h and the
gthr* file go into the v3 build tree. Upates to these files in the
gcc directory may not cause the files in the v3 build tree to update.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)