# HG changeset patch # User Stephen J. Turnbull # Date 1312779439 -32400 # Node ID 4307b8e5998c69fd69d809507d075f9ba110e6b8 # Parent 580ef98f2beb8b5f21b4ddb423a346e03508ece2 Suppress "shadowed global" warnings for floor and ceil from . diff -r 580ef98f2beb -r 4307b8e5998c src/ChangeLog --- a/src/ChangeLog Mon Aug 08 13:57:18 2011 +0900 +++ b/src/ChangeLog Mon Aug 08 13:57:19 2011 +0900 @@ -1,3 +1,9 @@ +2011-08-04 Stephen J. Turnbull + + * search.c (byte_scan_buffer): + Rename local variables to suppress GCC "shadowed global" warnings. + The warnings are due to ANSI functions from on Darwin. + 2011-08-04 Stephen J. Turnbull * mule-coding.c (shift_jis_convert): diff -r 580ef98f2beb -r 4307b8e5998c src/search.c --- a/src/search.c Mon Aug 08 13:57:18 2011 +0900 +++ b/src/search.c Mon Aug 08 13:57:19 2011 +0900 @@ -689,20 +689,20 @@ Raw_Ichar raw = ichar_to_raw (target, fmt, wrap_buffer (buf)); while (st < lim && count > 0) { - Bytebpos ceil; + Bytebpos ceiling; Ibyte *bufptr; - ceil = BYTE_BUF_CEILING_OF (buf, st); - ceil = min (lim, ceil); + ceiling = BYTE_BUF_CEILING_OF (buf, st); + ceiling = min (lim, ceiling); bufptr = (Ibyte *) memchr (BYTE_BUF_BYTE_ADDRESS (buf, st), - raw, ceil - st); + raw, ceiling - st); if (bufptr) { count--; st = BYTE_BUF_PTR_BYTE_POS (buf, bufptr) + 1; } else - st = ceil; + st = ceiling; } } @@ -740,15 +740,15 @@ Raw_Ichar raw = ichar_to_raw (target, fmt, wrap_buffer (buf)); while (st > lim && count < 0) { - Bytebpos floor; + Bytebpos floorpos; Ibyte *bufptr; Ibyte *floorptr; - floor = BYTE_BUF_FLOOR_OF (buf, st); - floor = max (lim, floor); + floorpos = BYTE_BUF_FLOOR_OF (buf, st); + floorpos = max (lim, floorpos); /* No memrchr() ... */ bufptr = BYTE_BUF_BYTE_ADDRESS_BEFORE (buf, st); - floorptr = BYTE_BUF_BYTE_ADDRESS (buf, floor); + floorptr = BYTE_BUF_BYTE_ADDRESS (buf, floorpos); while (bufptr >= floorptr) { st--;