gcc-4.3 warning fixes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10939 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2008-11-23 19:44:29 +00:00
commit 5d65e1ca92
2 changed files with 7 additions and 5 deletions

View file

@ -1101,7 +1101,8 @@ public:
case T_LONG: {
char *p;
errno = 0;
(void) strtol(Char(value), &p, 0);
unsigned int n = strtol(Char(value), &p, 0);
(void) n;
if (errno || *p) {
Clear(value);
Append(value, "?");
@ -1114,7 +1115,8 @@ public:
case T_ULONG: {
char *p;
errno = 0;
(void) strtoul(Char(value), &p, 0);
unsigned int n = strtoul(Char(value), &p, 0);
(void) n;
if (errno || *p) {
Clear(value);
Append(value, "?");