Re: [Tracker] [PATCH 2/2] tracker-parser: fix a warning when using unac



On 06/11/09 12:42, Juan A. Suarez Romero wrote:
Expected size_t type.
---
  src/libtracker-fts/tracker-parser.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/libtracker-fts/tracker-parser.c b/src/libtracker-fts/tracker-parser.c
index 8cfe327..de059fa 100644
--- a/src/libtracker-fts/tracker-parser.c
+++ b/src/libtracker-fts/tracker-parser.c
@@ -148,7 +148,7 @@ strip_word (const gchar *str,
  #ifdef HAVE_UNAC
        gchar *s = NULL;

-       if (unac_string ("UTF-8", str, length,&s,&*len) != 0) {
+       if (unac_string ("UTF-8", str, length,&s, (size_t *) len) != 0) {
                g_warning ("UNAC failed to strip accents");
        }


Hi Juan,

Thanks for this patch. Interesting, the documentation here:

  http://www.nongnu.org/unac/unac-man3.en.html

Says it isn't size_t, but when I compile with unac (which I should have been anyway up to now) it complains.

I have committed it now, thanks again - just made it into this week's release ;)

--
Regards,
Martyn



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]