
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 , 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 Moreover, I normally treat warnings as errors (with -Werror); which is
impossible when a third party library generates warnings.
--
Carlo Wood

Carlo Wood wrote:
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?
Hmm - I would like to do that but I don't see how its possible to do it in this case while still preserving the intent of the function; Robert Ramey

On Sun, Mar 12, 2006 at 08:18:45PM -0800, Robert Ramey wrote:
Carlo Wood wrote:
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?
Hmm - I would like to do that but I don't see how its possible to do it in this case while still preserving the intent of the function;
Robert Ramey
Heh? Just delete the 't'.
I did it in my local copy of boost, because I can't work
with the warning, but I'd like this fix to be in the next
release of boost.
Thus,
template<class T>
const basic_pointer_iserializer * register_type(T * t = NULL){
becomes
template<class T>
const basic_pointer_iserializer * register_type(T * = NULL){
etc (for any function that has function parameters that aren't used).
--
Carlo Wood
participants (2)
-
Carlo Wood
-
Robert Ramey