Branch: Tag:

2010-01-11

2010-01-11 16:30:48 by Stephen R. van den Berg <srb@cuci.nl>

Suppress silly compiler warnings.

Rev: src/builtin.cmod:1.253

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: builtin.cmod,v 1.252 2010/01/11 13:19:56 jonasw Exp $ + || $Id: builtin.cmod,v 1.253 2010/01/11 16:30:48 srb Exp $   */      #include "global.h"
786:    struct string_builder sb;    unsigned foundspace = 0;    +  wlen = replspace = 0; /* useless, but suppresses silly compiler warning */ +     {    unsigned bshift = shift, wshift;    if(whitespace)
808:    i = wlen = 0;    do {    unsigned chr = INDEX_PCHARP(pcows, i++); -  if (chr<=0xff || chr<=0xffff && shift) /* shift is 0 or 1 */ +  if (chr<=0xff || (chr<=0xffff && shift)) /* shift is 0 or 1 */    SET_INDEX_PCHARP(pcnws, wlen++, chr);    } while(--clen);    } else
861:    for (; start < end; start++) { \    size_t clen = wlen; \    do { \ -  if (ps[-clen] == *start) \ +  if (ps[0-clen] == *start) \    goto lead##TYPE; \    } while(--clen); \    break; \
871:    TYPE chr = *start; \    size_t clen = wlen; \    do \ -  if (ps[-clen] == chr) { \ +  if (ps[0-clen] == chr) { \    if (!foundspace) \    string_builder_putchar(&sb, replspace), foundspace=1; \    goto skip##TYPE; \