aboutsummaryrefslogtreecommitdiff
path: root/Source/Swig
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2013-03-08 22:19:07 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2013-03-08 22:19:07 +0000
commitfdea8a8f51a3734989729ea928b720083b32928f (patch)
tree932d2151a3272371203ba41eefd0b887b1650c93 /Source/Swig
parente0b14786d6d22276dda85354babbfeffdfd78072 (diff)
downloadswig-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.c2
-rw-r--r--Source/Swig/stype.c1
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);