Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1 reorder initialisers

open
nobody
None
5
2001-03-20
2001-03-20
Tylman Ule
No

in order to fix following warnings

/usr/local/include/regexx.hh: In method
`regexx::Regexx::Regexx()':
/usr/local/include/regexx.hh:501: warning: member
initializers for `unsigned int
regexx::Regexx::m_matches'
/usr/local/include/regexx.hh:505: warning: and `void
* regexx::Regexx::m_extra'
/usr/local/include/regexx.hh:266: warning: will be
re-ordered to match declaration order
/usr/local/include/regexx.hh: In method
`regexx::Regexx::Regexx(const string &, const string &,
int = 0)':
/usr/local/include/regexx.hh:501: warning: member
initializers for `unsigned int
regexx::Regexx::m_matches'
/usr/local/include/regexx.hh:505: warning: and `void
* regexx::Regexx::m_extra'
/usr/local/include/regexx.hh:285: warning: will be
re-ordered to match declaration order
/usr/local/include/regexx.hh: In method
`regexx::Regexx::Regexx(const string &, const string &,
const string &, int = 0)':
/usr/local/include/regexx.hh:501: warning: member
initializers for `unsigned int
regexx::Regexx::m_matches'
/usr/local/include/regexx.hh:505: warning: and `void
* regexx::Regexx::m_extra'
/usr/local/include/regexx.hh:300: warning: will be
re-ordered to match declaration order

Discussion

  • Tylman Ule
    Tylman Ule
    2001-03-20

    patch for regexx.hh

     
    Attachments
  • Logged In: NO

    Fixes this equivant warning as well: (freebsd gcc 3.4.4)
    /usr/local/include/regexx.hh: In constructor
    `regexx::Regexx::Regexx(const std::string&, const
    std::string&, const std::string&, int)':
    /usr/local/include/regexx.hh:505: warning:
    `regexx::Regexx::m_extra' will be initialized after
    /usr/local/include/regexx.hh:501: warning: `unsigned int
    regexx::Regexx::m_matches'
    /usr/local/include/regexx.hh:300: warning: when
    initialized here