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);
ns = (*fn) (s);
assert(pos != -1);
Seek(s, pos, SEEK_SET);
(void)Seek(s, pos, SEEK_SET);
if (tmp)
Delete(tmp);
return ns;

View file

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

View file

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