From dcde4c8eef8b4fbd5522dfbb7c294ee0f5583b65 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Tue, 5 Jan 2010 11:27:13 +0000 Subject: [PATCH] remove bad const warnings --- hunspell-1.2.8-2812045.warnings.fortify.patch | 21 +++++++++++++++++++ hunspell.spec | 5 ++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/hunspell-1.2.8-2812045.warnings.fortify.patch b/hunspell-1.2.8-2812045.warnings.fortify.patch index 5946d93..167c1af 100644 --- a/hunspell-1.2.8-2812045.warnings.fortify.patch +++ b/hunspell-1.2.8-2812045.warnings.fortify.patch @@ -12,6 +12,15 @@ diff -ru hunspell-1.2.8.orig/src/hunspell/affixmgr.cxx hunspell-1.2.8/src/hunspe } else { rv=NULL; } +@@ -3234,7 +3234,7 @@ + } + + // return the value of suffix +-const int AffixMgr::have_contclass() ++int AffixMgr::have_contclass() + { + return havecontclass; + } @@ -4276,7 +4276,7 @@ if (strip[i] == cond[j]) in = 1; } while ((j < (condl - 1)) && (cond[j] != ']')); @@ -200,3 +209,15 @@ diff -ru hunspell-1.2.8.orig/src/hunspell/suggestmgr.cxx hunspell-1.2.8/src/huns c[i*(n+1) + j] = c[(i-1)*(n+1) + j-1]+1; b[i*(n+1) + j] = LCS_UPLEFT; } else if (c[(i-1)*(n+1) + j] >= c[i*(n+1) + j-1]) { +diff -ru hunspell-1.2.8.orig/src/hunspell/affixmgr.hxx hunspell-1.2.8/src/hunspell/affixmgr.hxx +--- hunspell-1.2.8.orig/src/hunspell/affixmgr.hxx 2010-01-05 11:21:06.000000000 +0000 ++++ hunspell-1.2.8/src/hunspell/affixmgr.hxx 2008-10-30 20:28:59.000000000 +0000 +@@ -192,7 +192,7 @@ + const char * get_suffix(); + const char * get_derived(); + const char * get_version(); +- const int have_contclass(); ++ int have_contclass(); + int get_utf8(); + int get_complexprefixes(); + char * get_suffixed(char ); diff --git a/hunspell.spec b/hunspell.spec index 6f5beef..be401a3 100644 --- a/hunspell.spec +++ b/hunspell.spec @@ -1,7 +1,7 @@ Name: hunspell Summary: A spell checker and morphological analyzer library Version: 1.2.8 -Release: 14%{?dist} +Release: 15%{?dist} Source0: http://downloads.sourceforge.net/%{name}/hunspell-%{version}.tar.gz Source1: http://people.debian.org/~agmartin/misc/ispellaff2myspell Source2: http://people.redhat.com/caolanm/hunspell/wordlist2hunspell @@ -127,6 +127,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/hunspell.3.gz %changelog +* Tue Jan 05 2010 Caolan McNamara - 1.2.8-15 +- Remove bad const warnings + * Mon Dec 21 2009 Caolan McNamara - 1.2.8-14 - Preserve timestamps