Boost logo

Boost :

From: Domenico Andreoli (cavok_at_[hidden])
Date: 2005-05-09 10:24:18


hi,

boost debian package has been reported this bug/wish.

is anybody able to commit this tiny fix? many thanks.

cheers
domenico

----- Forwarded message from martin f krafft <madduck_at_[hidden]> -----

Date: Mon, 9 May 2005 09:59:43 +0200
From: martin f krafft <madduck_at_[hidden]>
Subject: Bug#308291: please prevent compiler warning about unused variable

Some of us like to use -Werror. Some of boost does not. Please
consider the following, non-intrusive and tested patches:

diff -u /tmp/interface_oarchive.hpp /usr/include/boost/archive/detail/interface_oarchive.hpp
--- /tmp/interface_oarchive.hpp 2005-05-09 09:54:24.897652747 +0200
+++ /usr/include/boost/archive/detail/interface_oarchive.hpp 2005-05-09 09:54:56.611522300 +0200
@@ -57,7 +57,7 @@
     }
 
     template<class T>
- const basic_pointer_oserializer * register_type(T * t = NULL){
+ const basic_pointer_oserializer * register_type(T * = NULL){
         const basic_pointer_oserializer & bpos =
             instantiate_pointer_oserializer(
                 static_cast<Archive *>(NULL),

diff -u /tmp/interface_iarchive.hpp /usr/include/boost/archive/detail/interface_iarchive.hpp
--- /tmp/interface_iarchive.hpp 2005-05-09 09:58:24.366913089 +0200
+++ /usr/include/boost/archive/detail/interface_iarchive.hpp 2005-05-09 09:58:31.519755952 +0200
@@ -53,7 +53,7 @@
     }
 
     template<class T>
- const basic_pointer_iserializer * register_type(T * t = NULL){
+ const basic_pointer_iserializer * register_type(T * = NULL){
         const basic_pointer_iserializer & bpis =
             archive::detail::instantiate_pointer_iserializer(
                 static_cast<Archive *>(NULL),

----- End forwarded message -----

-----[ Domenico Andreoli, aka cavok
 --[ http://people.debian.org/~cavok/gpgkey.asc
   ---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk