warnings with dinkum libraries

When using fstream.h with warning level 8:

In file included from /usr/include/fstream.h:4,
from Config.cpp:15:
/usr/include/fstream: In method
std::basic_filebuf<_Elem,_Traits>::basic_filebuf(_Filet * = 0)': /usr/include/fstream:89: warning: base initializer for std::basic_streambuf<_Elem,_Traits>’
/usr/include/fstream:89: warning: will be re-ordered to precede member
initializations
/usr/include/fstream: In method
std::basic_filebuf<_Elem,_Traits>::basic_filebuf(std::_Uninitialized)': /usr/include/fstream:98: warning: base initializer for std::basic_streambuf<_Elem,_Traits>’
/usr/include/fstream:98: warning: will be re-ordered to precede member
initializations
/usr/include/fstream: In method
`std::basic_filebuf<char,std::char_traits >::basic_filebuf(_File

This can (and should) be fixed by reordering the data members.
Markus

We are aware of this and have submitted a request to Dinkumware
to fix it. In the meantime you can filter out this warning
with -Wno-reorder

Markus Loffler <loffler@ces.clemson.edu> wrote:

When using fstream.h with warning level 8:

In file included from /usr/include/fstream.h:4,
from Config.cpp:15:
/usr/include/fstream: In method
std::basic_filebuf<_Elem,_Traits>::basic_filebuf(_Filet * = 0)': /usr/include/fstream:89: warning: base initializer for std::basic_streambuf<_Elem,_Traits>’
/usr/include/fstream:89: warning: will be re-ordered to precede member
initializations
/usr/include/fstream: In method
std::basic_filebuf<_Elem,_Traits>::basic_filebuf(std::_Uninitialized)': /usr/include/fstream:98: warning: base initializer for std::basic_streambuf<_Elem,_Traits>’
/usr/include/fstream:98: warning: will be re-ordered to precede member
initializations
/usr/include/fstream: In method
`std::basic_filebuf<char,std::char_traits >::basic_filebuf(_File

This can (and should) be fixed by reordering the data members.
Markus


cburgess@qnx.com