From 0f0bf9c8c812f8fb3aa528d9d89944063cece422 Mon Sep 17 00:00:00 2001 From: Martin Nilsson <nilsson@opera.com> Date: Thu, 4 Sep 2014 00:51:38 +0200 Subject: [PATCH] Fixed warnings. --- src/builtin.cmod | 4 ++-- src/stralloc.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/builtin.cmod b/src/builtin.cmod index 624fbc4dc7..542f012b6a 100644 --- a/src/builtin.cmod +++ b/src/builtin.cmod @@ -3095,7 +3095,7 @@ PIKECLASS Buffer struct Buffer_struct *str = THIS; struct pike_string *s = str->str.s; unsigned len = s->len, shift = s->size_shift; - void *p; + char *p; struct object *res; struct Buffer_struct *str2; @@ -3418,7 +3418,7 @@ PIKECLASS Buffer struct object *res; struct pike_string *s = str->str.s; unsigned len = s->len,shift = s->size_shift; - void *p = s->str; + char *p = s->str; INT_TYPE end,vdiscard; end = args==1 ? len-1 : end_or_none->u.integer; diff --git a/src/stralloc.c b/src/stralloc.c index 0abd26f372..86ed83889c 100644 --- a/src/stralloc.c +++ b/src/stralloc.c @@ -1514,10 +1514,10 @@ ptrdiff_t generic_quick_binary_strcmp(const char *a, const char *b, ptrdiff_t blen, int bsize) { + ptrdiff_t pos; if(!asize && !bsize) return low_quick_binary_strcmp(a, alen, b, blen); - ptrdiff_t pos; for(pos=0;pos< MINIMUM(alen,blen) ;pos++) { p_wchar2 ac=generic_extract(a,asize,pos); -- GitLab