Suppress some unchecked return value warnings for Coverity

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13902 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2012-11-18 00:44:19 +00:00
commit 475c6c6ce0
3 changed files with 4 additions and 4 deletions

View file

@ -77,7 +77,7 @@ static DOH *encode(char *name, DOH *s) {
fn = (DOH *(*)(DOH *)) Data(handle); fn = (DOH *(*)(DOH *)) Data(handle);
ns = (*fn) (s); ns = (*fn) (s);
assert(pos != -1); assert(pos != -1);
Seek(s, pos, SEEK_SET); (void)Seek(s, pos, SEEK_SET);
if (tmp) if (tmp)
Delete(tmp); Delete(tmp);
return ns; return ns;

View file

@ -584,7 +584,7 @@ static List *find_args(String *s, int ismacro, String *macro_name) {
if (c != '(') { if (c != '(') {
/* Not a macro, bail out now! */ /* Not a macro, bail out now! */
assert(pos != -1); assert(pos != -1);
Seek(s, pos, SEEK_SET); (void)Seek(s, pos, SEEK_SET);
Delete(args); Delete(args);
return 0; return 0;
} }

View file

@ -271,7 +271,7 @@ static void retract(Scanner * s, int n) {
if (str[l - 1] == '\n') { if (str[l - 1] == '\n') {
if (!s->freeze_line) s->line--; if (!s->freeze_line) s->line--;
} }
Seek(s->str, -1, SEEK_CUR); (void)Seek(s->str, -1, SEEK_CUR);
Delitem(s->text, DOH_END); Delitem(s->text, DOH_END);
} }
} }
@ -1317,7 +1317,7 @@ void Scanner_locator(Scanner *s, String *loc) {
} else { } else {
int c; int c;
Locator *l; Locator *l;
Seek(loc, 7, SEEK_SET); (void)Seek(loc, 7, SEEK_SET);
c = Getc(loc); c = Getc(loc);
if (c == '@') { if (c == '@') {
/* Empty locator. We pop the last location off */ /* Empty locator. We pop the last location off */