File libwps-0.2.2-gcc46.patch of Package libwps
--- libwps-0.2.2/src/lib/WPS4.cpp 2011-04-04 21:34:27.000000000 +0200
+++ libwps-0.2.2/src/lib/WPS4.cpp 2011-05-18 11:49:54.638226220 +0200
@@ -198,10 +198,7 @@
}
input->seek(page_offset, WPX_SEEK_SET);
- uint32_t fcFirst; /* Byte number of first character covered by this page
- of formatting information */
-
- fcFirst = readU32(input);
+ readU32(input);
int first_fod = FODs->size();
--- libwps-0.2.2/src/lib/WPS8.cpp 2011-05-03 15:00:13.000000000 +0200
+++ libwps-0.2.2/src/lib/WPS8.cpp 2011-05-18 11:52:51.813645308 +0200
@@ -159,7 +159,7 @@
for (unsigned i=0; i < n_streams; i++) {
uint16_t len;
- uint32_t unknown, type = 0;
+ uint32_t type = 0;
len = readU16(input);
if (len > 10) {
@@ -168,7 +168,7 @@
}
if (len > 4) {
- unknown = readU32(input); // assume == 0x22000000
+ readU32(input); // assume == 0x22000000
type = readU32(input);
} else input->seek(len-2,WPX_SEEK_CUR);