diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2013-03-08 22:19:07 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2013-03-08 22:19:07 +0000 |
commit | fdea8a8f51a3734989729ea928b720083b32928f (patch) | |
tree | 932d2151a3272371203ba41eefd0b887b1650c93 /Source/Swig | |
parent | e0b14786d6d22276dda85354babbfeffdfd78072 (diff) | |
download | swig-fdea8a8f51a3734989729ea928b720083b32928f.tar.gz |
More useless code removal as detected by scan-build (LLVM/Clang)
using scan-build ./configure && scan-build make
Diffstat (limited to 'Source/Swig')
-rw-r--r-- | Source/Swig/scanner.c | 2 | ||||
-rw-r--r-- | Source/Swig/stype.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/Source/Swig/scanner.c b/Source/Swig/scanner.c index 52e21dc0a..ed2d43b51 100644 --- a/Source/Swig/scanner.c +++ b/Source/Swig/scanner.c @@ -1141,7 +1141,7 @@ void Scanner_skip_line(Scanner * s) { if ((c = nextchar(s)) == 0) return; if (c == '\\') { - c = nextchar(s); + nextchar(s); } else if (c == '\n') { done = 1; } diff --git a/Source/Swig/stype.c b/Source/Swig/stype.c index 8dc189725..fcaf54093 100644 --- a/Source/Swig/stype.c +++ b/Source/Swig/stype.c @@ -640,7 +640,6 @@ SwigType *SwigType_ltype(const SwigType *s) { if (td && (SwigType_isconst(td) || SwigType_isarray(td) || SwigType_isreference(td))) { /* We need to use the typedef type */ Delete(tt); - tt = td; break; } else if (td) { Delete(tt); |