summaryrefslogtreecommitdiffstats
path: root/Modules/pcremodule.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-07-19 21:29:49 (GMT)
committerFred Drake <fdrake@acm.org>2001-07-19 21:29:49 (GMT)
commitdff3a37afdf36263d9d10daf35d8400bda0dbbb1 (patch)
tree33b0e9b4ecde0759e00f928161d24eff99009247 /Modules/pcremodule.c
parente5065290e79795c655d46475ae7c92ef225ab90e (diff)
downloadcpython-dff3a37afdf36263d9d10daf35d8400bda0dbbb1.zip
cpython-dff3a37afdf36263d9d10daf35d8400bda0dbbb1.tar.gz
cpython-dff3a37afdf36263d9d10daf35d8400bda0dbbb1.tar.bz2
Make more warnings go away on the SGI compiler.
This is part of SF patch #424992.
Diffstat (limited to 'Modules/pcremodule.c')
-rw-r--r--Modules/pcremodule.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Modules/pcremodule.c b/Modules/pcremodule.c
index a7581c6..e34c002 100644
--- a/Modules/pcremodule.c
+++ b/Modules/pcremodule.c
@@ -258,7 +258,6 @@ PyPcre_expand_escape(unsigned char *pattern, int pattern_len,
*indexptr = end;
return Py_BuildValue("c", (char)x);
}
- break;
case('E'): case('G'): case('L'): case('Q'):
case('U'): case('l'): case('u'):
@@ -331,7 +330,6 @@ PyPcre_expand_escape(unsigned char *pattern, int pattern_len,
/* Otherwise, return a string containing the group name */
return Py_BuildValue("s#", pattern+index, end-index);
}
- break;
case('0'):
{
@@ -354,7 +352,7 @@ PyPcre_expand_escape(unsigned char *pattern, int pattern_len,
*indexptr = i;
return Py_BuildValue("c", (unsigned char)octval);
}
- break;
+
case('1'): case('2'): case('3'): case('4'):
case('5'): case('6'): case('7'): case('8'):
case('9'):
@@ -410,7 +408,6 @@ PyPcre_expand_escape(unsigned char *pattern, int pattern_len,
return Py_BuildValue("i", pattern[index]-'0');
}
}
- break;
default:
/* It's some unknown escape like \s, so return a string containing