Skip to content

Commit

Permalink
app-text/fbreader: make gcc6 happy
Browse files Browse the repository at this point in the history
Bug: 592588

Package-Manager: portage-2.3.0
  • Loading branch information
Andrey Grozin committed Sep 1, 2016
1 parent 94e3223 commit 8f57005
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app-text/fbreader/fbreader-0.99.4-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ src_prepare() {
epatch "${FILESDIR}"/${P}-mimetypes.patch
# bug #437262
epatch "${FILESDIR}"/${P}-ld-bfd.patch
# bug #592588
epatch "${FILESDIR}"/${P}-gcc6.patch
}

src_compile() {
Expand Down
11 changes: 11 additions & 0 deletions app-text/fbreader/files/fbreader-0.99.4-gcc6.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- fbreader/src/formats/doc/OleStorage.cpp 2012-11-30 13:41:25.000000000 +0100
+++ fbreader/src/formats/doc/OleStorage.cpp-new 2016-08-31 17:23:18.232536401 +0200
@@ -59,7 +59,7 @@
clear();
return false;
}
- static const char OLE_SIGN[] = {0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1, 0};
+ static const char OLE_SIGN[] = {(char)0xD0, (char)0xCF, (char)0x11, (char)0xE0, (char)0xA1, (char)0xB1, (char)0x1A, (char)0xE1, 0};
if (std::strncmp(oleBuf, OLE_SIGN, 8) != 0) {
clear();
return false;

0 comments on commit 8f57005

Please sign in to comment.