This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Correct patch to silence warning in eh_call.cc?


I'm really not sure that this patch is correct--I don't know the libstdc++ code well
enough.  On my Linux system, the patch silences a warning about size_of_encoded_value
being defined but not used in eh_call.cc.  I can't see any way for code in eh_call.c
to call size_of_encoded_value(), regardless of the target type.

OK?

Ben

2005-07-19  Ben Elliston  <bje@au.ibm.com>

        * libsupc++/eh_call.cc (NO_SIZE_OF_ENCODED_VALUE): Define.

Index: eh_call.cc
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/libstdc++-v3/libsupc++/eh_call.cc,v
retrieving revision 1.2
diff -u -p -r1.2 eh_call.cc
--- eh_call.cc  28 Jun 2005 20:06:39 -0000      1.2
+++ eh_call.cc  19 Jul 2005 03:52:53 -0000
@@ -35,6 +35,7 @@

 using namespace __cxxabiv1;

+#define NO_SIZE_OF_ENCODED_VALUE
 #include "unwind-pe.h"


Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]