|
Boost Users : |
From: Carlo Wood (carlo_at_[hidden])
Date: 2006-03-12 20:39:53
Ok, it's not a "bug"... but it's damn annoying to get
compiler warnings from library header. Especially when
those compiler warnings are 1 page long.
Is it possible to please not mention variables that
aren't being used?
This is what I get for a SINGLE warning:
/usr/include/boost/archive/detail/interface_oarchive.hpp: In instantiation
of âconst boost::archive::detail::basic_pointer_oserializer*
boost::archive::detail::interface_oarchive<Archive>::register_type(T*)
[with T = std::set<DirTree, std::less<DirTree>, std::allocator<DirTree> >,
Archive = boost::archive::xml_oarchive]â:
/usr/include/boost/archive/detail/oserializer.hpp:332: instantiated from
âstatic const boost::archive::detail::basic_pointer_oserializer* boost::
archive::detail::save_pointer_type<Archive, TPtr>::non_abstract<T>::
register_type(Archive&) [with T = std::set<DirTree, std::less<DirTree>,
std::allocator<DirTree> >, Archive = boost::archive::xml_oarchive, TPtr =
DirTrees*]â
/usr/include/boost/archive/detail/oserializer.hpp:349: instantiated from
âstatic const boost::archive::detail::basic_pointer_oserializer* boost::
archive::detail::save_pointer_type<Archive, TPtr>::register_type(Archive&,
T&) [with T = std::set<DirTree, std::less<DirTree>, std::allocator<DirTree>
>, Archive = boost::archive::xml_oarchive, TPtr = DirTrees*]â
/usr/include/boost/archive/detail/oserializer.hpp:475: instantiated from
âstatic void boost::archive::detail::save_pointer_type<Archive, TPtr>::
invoke(Archive&, TPtr) [with Archive = boost::archive::xml_oarchive,
TPtr = DirTrees*]â
/usr/include/boost/archive/detail/oserializer.hpp:551: instantiated from
âvoid boost::archive::save(Archive&, const T&) [with Archive = boost::
archive::xml_oarchive, T = DirTrees*]â
/usr/include/boost/archive/basic_xml_oarchive.hpp:84: instantiated from
âvoid boost::archive::basic_xml_oarchive<Archive>::save_override(const
boost::serialization::nvp<T>&, int) [with T = DirTrees* const, Archive =
boost::archive::xml_oarchive]â
/usr/include/boost/archive/detail/interface_oarchive.hpp:80: instantiated
from âArchive& boost::archive::detail::interface_oarchive<Archive>::
operator<<(const T&) [with T = boost::serialization::nvp<DirTrees* const>,
Archive = boost::archive::xml_oarchive]â
../../cppgraph/src/serialization.h:35: instantiated from âvoid
Iterator<Container>::save(Archive&, unsigned int) const [with Archive =
boost::archive::xml_oarchive, Container = DirTrees]â
/usr/include/boost/serialization/access.hpp:90: instantiated from âstatic
void boost::serialization::access::member_save(Archive&, const T&, unsigned
int) [with Archive = boost::archive::xml_oarchive, T = Iterator<DirTrees>]â
/usr/include/boost/serialization/split_member.hpp:42: instantiated from
âstatic void boost::serialization::detail::member_saver<Archive, T>::invoke(
Archive&, const T&, unsigned int) [with Archive = boost::archive::
xml_oarchive, T = Iterator<DirTrees>]â
/usr/include/boost/serialization/split_member.hpp:63: instantiated from
âvoid boost::serialization::split_member(Archive&, T&, unsigned int) [with
Archive = boost::archive::xml_oarchive, T = Iterator<DirTrees>]â
../../cppgraph/src/serialization.h:46: instantiated from âvoid
Iterator<Container>::serialize(Archive&, unsigned int) [with Archive =
boost::archive::xml_oarchive, Container = DirTrees]â
/usr/include/boost/serialization/access.hpp:106: instantiated from
âstatic void boost::serialization::access::serialize(Archive&, T&,
unsigned int) [with Archive = boost::archive::xml_oarchive, T =
Iterator<DirTrees>]â
/usr/include/boost/serialization/serialization.hpp:78: instantiated from
âvoid boost::serialization::serialize(Archive&, T&, unsigned int) [with
Archive = boost::archive::xml_oarchive, T = Iterator<DirTrees>]â
/usr/include/boost/serialization/serialization.hpp:121: instantiated
from âvoid boost::serialization::serialize_adl(Archive&, T&, unsigned int)
[with Archive = boost::archive::xml_oarchive, T = Iterator<DirTrees>]â
/usr/include/boost/archive/detail/oserializer.hpp:148: instantiated from
âvoid boost::archive::detail::oserializer<Archive, T>::save_object_data
(boost::archive::detail::basic_oarchive&, const void*) const [with Archive
= boost::archive::xml_oarchive, T = Iterator<DirTrees>]â
../../cppgraph/src/serialization.cc:40: instantiated from here
/usr/include/boost/archive/detail/interface_oarchive.hpp:60: warning:
unused parameter âtâ
Moreover, I normally treat warnings as errors (with -Werror); which is
impossible when a third party library generates warnings.
-- Carlo Wood <carlo_at_[hidden]>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net