Getting the following:

 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../gen -I../../lib/common
-I../../lib/common/sys -I../../lib/common/framing -DLINUX=2 -D_REENTRANT
-D_GNU_SOURCE -g -O2 -pthread -I/home/pyramid/r015530/local/rhel4/apr-1.2.7
/include/apr-1 -DUSE_APR=1 -pedantic -Wall -Wextra -Wno-shadow
-Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Winvalid-pch
-Wno-system-headers -I/home/pyramid/r015530/local/boost-1.33.1
/include/boost-1_33_1 -MT BrokerChannel.lo -MD -MP -MF
.deps/BrokerChannel.Tpo -c BrokerChannel.cpp  -fPIC -DPIC -o
.libs/BrokerChannel.o
/usr/lib/gcc/x86_64-redhat-linux/3.4.4/../../../../include/c++/3.4.4
/bits/stl_function.h: In function `std::binder2nd<_Operation>
std::bind2nd(const _Operation&, const _Tp&) [with _Operation =
std::const_mem_fun1_ref_t<void, qpid::broker::DeliveryRecord,
qpid::broker::TransactionContext*>, _Tp = int]':
BrokerChannel.cpp:207:   instantiated from here
/usr/lib/gcc/x86_64-redhat-linux/3.4.4/../../../../include/c++/3.4.4
/bits/stl_function.h:455: warning: cast to pointer from integer of
different size

BrokerChannelcpp:207 reads:

      for_each(unacked.begin(), end,
bind2nd(mem_fun_ref(&DeliveryRecord::discard), 0));

stl_function.h:455 reads:

    449   /// One of the @link s20_3_6_binder binder [EMAIL PROTECTED]
    450   template <class _Operation, class _Tp>
    451     inline binder2nd<_Operation>
    452     bind2nd(const _Operation& __fn, const _Tp& __x)
    453     {
    454       typedef typename _Operation::second_argument_type _Arg2_type;
*   455       return binder2nd<_Operation>(__fn, _Arg2_type(__x));
    456     }

It would be good to fix this warning as this current halts the build. For
the time being I disabled -Werror by hacking the configure.ac. The build
completes with no further warnings and "make check" is successful (Thanks
to Gordon for the update to basic.py for my old broken version of
python/pyunit).

Cheers,
Steve.



This communication is for informational purposes only. It is not intended as an 
offer or solicitation for the purchase or sale of any financial instrument or 
as an official confirmation of any transaction. All market prices, data and 
other information are not warranted as to completeness or accuracy and are 
subject to change without notice. Any comments or statements made herein do not 
necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and 
affiliates.

This transmission may contain information that is privileged, confidential, 
legally privileged, and/or exempt from disclosure under applicable law. If you 
are not the intended recipient, you are hereby notified that any disclosure, 
copying, distribution, or use of the information contained herein (including 
any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and 
any attachments are believed to be free of any virus or other defect that might 
affect any computer system into which it is received and opened, it is the 
responsibility of the recipient to ensure that it is virus free and no 
responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and 
affiliates, as applicable, for any loss or damage arising in any way from its 
use. If you received this transmission in error, please immediately contact the 
sender and destroy the material in its entirety, whether in electronic or hard 
copy format. Thank you.
 

Reply via email to