URL:
  <http://gna.org/bugs/?17584>

                 Summary: Compiler warning: ana::client_predicate non
initialized in ana::_generic_client_predicate's copy constructor
                 Project: Battle for Wesnoth
            Submitted by: ejls
            Submitted on: Wed 26 Jan 2011 09:21:13 PM GMT
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group:  None of the others
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: r48377
        Operating System: OpenBSD 4.8

    _______________________________________________________

Details:

Hi,

On r48377, g++ 4.2.4 reports an error:

cc1plus: warnings being treated as errors
src/ana/api/predicates.hpp: In copy constructor
'ana::_generic_client_predicate<predicate>::_generic_client_predicate(const
ana::_generic_client_predicate<predicate>&) [with predicate =
boost::_bi::bind_t<boost::_bi::unspecified, std::equal_to<long unsigned int>,
boost::_bi::list2<boost::_bi::value<long unsigned int>, boost::arg<1> > >]':
src/ana/src/asio_server.cpp:205:   instantiated from here
src/ana/api/predicates.hpp:78: warning: base class 'struct
ana::client_predicate' should be explicitly initialized in the copy
constructor


Adding client_predicate() to the initilizer list solve the problem. patch
attached.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 26 Jan 2011 09:21:13 PM GMT  Name: ana::_generic_client_predicate
initialization.patch  Size: 487B   By: ejls
add client_predicate() to the initializer list of
ana::_generic_client_predicate's copy constructor.
<http://gna.org/bugs/download.php?file_id=12115>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?17584>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to