summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2010-09-14 18:52:18 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2010-09-14 18:52:18 +0000
commita202bf98183f8ef66d83d3c75e22078bcfdc4922 (patch)
treef61071c6a0a84cde2ee2cef6994155e6f86e7aa9 /Source
parentcfcad4ab696deb4af525a7f8a8ee9a97d8d9af1b (diff)
downloadswig-a202bf98183f8ef66d83d3c75e22078bcfdc4922.tar.gz
Fix undefined behaviour
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12220 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Source')
-rw-r--r--Source/Modules/ruby.cxx14
1 files changed, 0 insertions, 14 deletions
diff --git a/Source/Modules/ruby.cxx b/Source/Modules/ruby.cxx
index 3887d8a98..bcdfd69d3 100644
--- a/Source/Modules/ruby.cxx
+++ b/Source/Modules/ruby.cxx
@@ -121,7 +121,6 @@ public:
/* flags for the make_autodoc function */
enum autodoc_t {
- AUTODOC_NOTSET,
AUTODOC_CLASS,
AUTODOC_CTOR,
AUTODOC_DTOR,
@@ -581,9 +580,6 @@ private:
case AUTODOC_SETTER:
Printf(doc, " Document-method: %s.%s=\n\n", full_name, symname);
break;
- case AUTODOC_NOTSET:
- assert(0);
- break;
}
}
@@ -612,9 +608,6 @@ private:
if (type) Printf(doc, " -> %s", type);
break;
}
- case AUTODOC_NOTSET:
- assert(0);
- break;
default:
break;
}
@@ -672,9 +665,6 @@ private:
if (type) Printf(doc, " -> %s", type);
break;
}
- case AUTODOC_NOTSET:
- assert(0);
- break;
}
}
@@ -708,9 +698,6 @@ private:
case AUTODOC_SETTER:
Printf(doc, "Set new value for attribute.\n");
break;
- case AUTODOC_NOTSET:
- assert(0);
- break;
}
}
@@ -775,7 +762,6 @@ public:
modvar = 0;
feature = 0;
prefix = 0;
- last_mode = AUTODOC_NOTSET,
last_autodoc = NewString("");
current = NO_CPP;
classes = 0;