This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: STL warnings recently appeared in the 3.0 branch


> .../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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]