From:
[email protected]
Package: libofx
Severity: normal
Tags: patch
When building 'libofx' with gcc-3.4 I get the following error:
ofxdump.cpp:311: error: `.' cannot appear in a constant-expression ofxdump.cpp:313: error: `data' cannot appear in a constant-expression ofxdump.cpp:313: error: `.' cannot appear in a constant-expression ofxdump.cpp:315: error: `data' cannot appear in a constant-expression ofxdump.cpp:315: error: `.' cannot appear in a constant-expression ofxdump.cpp:317: error: `data' cannot appear in a constant-expression ofxdump.cpp:317: error: `.' cannot appear in a constant-expression ofxdump.cpp:319: error: `data' cannot appear in a constant-expression ofxdump.cpp:319: error: `.' cannot appear in a constant-expression ofxdump.cpp:321: error: `data' cannot appear in a constant-expression ofxdump.cpp:321: error: `.' cannot appear in a constant-expression ofxdump.cpp:323: error: `data' cannot appear in a constant-expression ofxdump.cpp:323: error: `.' cannot appear in a constant-expression
make[3]: *** [ofxdump.o] Error 1
make[3]: Leaving directory `/libofx-0.6.6/ofxdump'
With the attached patch 'libofx' can be compiled using gcc-3.4.
Regards
Andreas Jochens
diff -urN ../tmp-orig/libofx-0.6.6/ofxdump/ofxdump.cpp ./ofxdump/ofxdump.cpp --- ../tmp-orig/libofx-0.6.6/ofxdump/ofxdump.cpp 2004-01-14 21:47:52.000000000 +0100
+++ ./ofxdump/ofxdump.cpp 2004-08-14 15:20:51.708805353 +0200
@@ -204,39 +204,39 @@
if(data.transactiontype_valid==true){
switch(data.transactiontype){
- case data.OFX_CREDIT: strncpy(dest_string, "CREDIT: Generic credit", sizeof(dest_string));
+ case OfxTransactionData::OFX_CREDIT: strncpy(dest_string, "CREDIT: Generic credit", sizeof(dest_string));
break;
- case data.OFX_DEBIT: strncpy(dest_string, "DEBIT: Generic debit", sizeof(dest_string));
+ case OfxTransactionData::OFX_DEBIT: strncpy(dest_string, "DEBIT: Generic debit", sizeof(dest_string));
break;
- case data.OFX_INT: strncpy(dest_string, "INT: Interest earned or paid (Note: Depends on signage of amount)", sizeof(dest_string));
+ case OfxTransactionData::OFX_INT: strncpy(dest_string, "INT: Interest earned or paid (Note: Depends on signage of amount)", sizeof(dest_string));
break;
- case data.OFX_DIV: st