mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
casts to avoid spurious warnings
This commit is contained in:
parent
73f3fb78ab
commit
93a961304a
2 changed files with 6 additions and 3 deletions
|
@ -4,7 +4,8 @@
|
|||
* Tests/base/NSMutableAttributedString/test00.m: add sanity checks
|
||||
* Tests/base/NSMutableAttributedString/test01.m: add sanity checks
|
||||
* Source/GSString.m: raise exception on character conversion failure
|
||||
* Source/Source/NSNumberFormatter.m: remove dead code
|
||||
* Source/NSNumberFormatter.m: remove dead code
|
||||
* Source/NSPropertyList.m: avoid warnings using cast to void
|
||||
|
||||
2018-02-07 Yavor Doganov <yavor@gnu.org>
|
||||
|
||||
|
|
|
@ -1295,7 +1295,8 @@ static id parsePlItem(pldata* pld)
|
|||
return nil;
|
||||
}
|
||||
buf = NSZoneMalloc(NSDefaultMallocZone(), (len + 1) / 2);
|
||||
skipSpace(pld);
|
||||
// We permit (but do not require) space before hex octets
|
||||
(void)skipSpace(pld);
|
||||
len = 0;
|
||||
while (pld->pos < max
|
||||
&& isxdigit(pld->ptr[pld->pos])
|
||||
|
@ -1308,7 +1309,8 @@ static id parsePlItem(pldata* pld)
|
|||
byte |= char2num(pld->ptr[pld->pos]);
|
||||
pld->pos++;
|
||||
buf[len++] = byte;
|
||||
skipSpace(pld);
|
||||
// We permit (but do not require) space between/after hex octets
|
||||
(void)skipSpace(pld);
|
||||
}
|
||||
if (pld->ptr[pld->pos] != '>')
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue