summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-06-15 11:01:58 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-06-15 11:01:58 (GMT)
commit8972f613ebb784402a6b52363af36ea6b77ccfd1 (patch)
tree8ecc6179cce54380e418a76fb147f332a929b2ad
parentb7a1ba3ba40ba71b65cefedc057bbccf0323f4a5 (diff)
parentf7860f65a494888a46e377831ba0419de5f364d9 (diff)
downloadtcl-8972f613ebb784402a6b52363af36ea6b77ccfd1.zip
tcl-8972f613ebb784402a6b52363af36ea6b77ccfd1.tar.gz
tcl-8972f613ebb784402a6b52363af36ea6b77ccfd1.tar.bz2
Merge core-8-6-branch.
Fix gcc warning: tclStrToD.c:1180:2: warning: enumeration value ‘ZERO_D’ not handled in switch [-Wswitch] switch (acceptState) {
-rw-r--r--doc/dict.n2
-rw-r--r--generic/tclStrToD.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/doc/dict.n b/doc/dict.n
index fecad85..cd7e94c 100644
--- a/doc/dict.n
+++ b/doc/dict.n
@@ -437,7 +437,7 @@ puts $foo
# prints: \fIa b foo {a b} bar 2 baz 3\fR
.CE
.SH "SEE ALSO"
-append(n), array(n), foreach(n), mapeach(n), incr(n), list(n), lappend(n), set(n)
+append(n), array(n), foreach(n), incr(n), list(n), lappend(n), lmap(n), set(n)
.SH KEYWORDS
dictionary, create, update, lookup, iterate, filter, map
'\" Local Variables:
diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c
index 4377832..5e49846 100644
--- a/generic/tclStrToD.c
+++ b/generic/tclStrToD.c
@@ -1183,6 +1183,7 @@ TclParseNumber(
case ZERO_X:
case ZERO_O:
case ZERO_B:
+ case ZERO_D:
case LEADING_RADIX_POINT:
case EXPONENT_START:
case EXPONENT_SIGNUM:
@@ -1197,9 +1198,9 @@ TclParseNumber(
case sNA:
case sNANPAREN:
case sNANHEX:
+#endif
Tcl_Panic("TclParseNumber: bad acceptState %d parsing '%s'",
acceptState, bytes);
-#endif
case BINARY:
shift = numTrailZeros;
if (!significandOverflow && significandWide != 0 &&