Subject: [Boost-bugs] [Boost C++ Libraries] #7640: Serialization of simple object throws warning with compile time flags Wconversion Wsign-compare Wcast-align
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-11-05 10:11:05
#7640: Serialization of simple object throws warning with compile time flags
Wconversion Wsign-compare Wcast-align
-----------------------------------------------------+----------------------
Reporter: hardik <hardik.soni@â¦> | Owner: ramey
Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
Version: Boost 1.51.0 | Severity: Cosmetic
Keywords: |
-----------------------------------------------------+----------------------
g++ version is following
-----------------------------------------------------------------------
$ g++ --version
g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
----------------------------------------------------------------------
warnings are following
----------------------------------------------------------------------
$ g++ -Wconversion -Wsign-compare -Wcast-align ObjSer.cpp -I./include/
./lib/libboost_serialization.a
./include/boost/mpl/print.hpp: In instantiation of
âboost::mpl::print<boost::serialization::BOOST_SERIALIZATION_STATIC_WARNING_LINE<98>
>â:
./include/boost/serialization/static_warning.hpp:92: instantiated from
âboost::serialization::static_warning_test<false, 98>â
./include/boost/archive/detail/check.hpp:98: instantiated from âvoid
boost::archive::detail::check_object_tracking() [with T = MyClass]â
./include/boost/archive/detail/oserializer.hpp:313: instantiated from
âstatic void
boost::archive::detail::save_non_pointer_type<Archive>::invoke(Archive&,
T&) [with T = MyClass, Archive = boost::archive::text_oarchive]â
./include/boost/archive/detail/oserializer.hpp:525: instantiated from
âvoid boost::archive::save(Archive&, T&) [with Archive =
boost::archive::text_oarchive, T = MyClass]â
./include/boost/archive/detail/common_oarchive.hpp:69: instantiated from
âvoid boost::archive::detail::common_oarchive<Archive>::save_override(T&,
int) [with T = MyClass, Archive = boost::archive::text_oarchive]â
./include/boost/archive/basic_text_oarchive.hpp:80: instantiated from
âvoid boost::archive::basic_text_oarchive<Archive>::save_override(T&, int)
[with T = MyClass, Archive = boost::archive::text_oarchive]â
./include/boost/archive/detail/interface_oarchive.hpp:63: instantiated
from âArchive&
boost::archive::detail::interface_oarchive<Archive>::operator<<(T&) [with
T = MyClass, Archive = boost::archive::text_oarchive]â
ObjSer.cpp:54: instantiated from here
./include/boost/mpl/print.hpp:55: warning: comparison between signed and
unsigned integer expressions
./include/boost/archive/detail/oserializer.hpp: In member function âvoid
boost::archive::detail::oserializer<Archive,
T>::save_object_data(boost::archive::detail::basic_oarchive&, const void*)
const [with Archive = boost::archive::text_oarchive, T = MyClass]â:
ObjSer.cpp:64: instantiated from here
./include/boost/archive/detail/oserializer.hpp:148: warning: choosing
âboost::archive::version_type::operator uint_least32_t&()â over
âboost::archive::version_type::operator uint_least32_t() constâ
./include/boost/archive/detail/oserializer.hpp:148: warning: for
conversion from âboost::archive::version_typeâ to âuint_least32_tâ
./include/boost/archive/detail/oserializer.hpp:148: warning: because
conversion sequence for the argument is better
----------------------------------------------------------------------
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7640> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC