File coolreader3-3.0.32-gcc_warnings.patch of Package coolreader3-qt
Description: Remove GCC warnings.
Author: Kyrill Detinov <lazy.kent@opensuse.org>
Index: cr3wx/src/cr3.cpp
===================================================================
--- cr3wx/src/cr3.cpp.orig 2010-06-24 18:15:44.000000000 +0400
+++ cr3wx/src/cr3.cpp 2010-06-27 22:34:40.000000000 +0400
@@ -274,7 +274,7 @@ void testHyphen( const char * str )
void testFormatting()
{
//
- static char * words[] = {
+ static const char * words[] = {
"audition",
"helper",
"automation",
Index: cr3wx/src/cr3.xpm
===================================================================
--- cr3wx/src/cr3.xpm.orig 2010-06-24 18:15:44.000000000 +0400
+++ cr3wx/src/cr3.xpm 2010-06-27 22:34:33.000000000 +0400
@@ -1,5 +1,5 @@
/* XPM */
-static char *cr3_xpm[] = {
+static const char *cr3_xpm[] = {
/* width height num_colors chars_per_pixel */
"32 32 3 1",
/* colors */