aboutsummaryrefslogtreecommitdiff
path: root/src/backend/regex/regc_pg_locale.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-04-10 18:44:07 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-04-10 18:44:07 -0400
commit7aa3f1d08292d43b983075e190eee964c389e347 (patch)
treefe14085d913d679ad1c1e7102a929921607cb0b8 /src/backend/regex/regc_pg_locale.c
parentc1d82a936f6783f4b084810ff22ca01706f8054e (diff)
downloadpostgresql-7aa3f1d08292d43b983075e190eee964c389e347.tar.gz
postgresql-7aa3f1d08292d43b983075e190eee964c389e347.zip
Insert dummy "break"s to silence compiler complaints.
Apparently some compilers dislike a case label with nothing after it. Per buildfarm.
Diffstat (limited to 'src/backend/regex/regc_pg_locale.c')
-rw-r--r--src/backend/regex/regc_pg_locale.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/backend/regex/regc_pg_locale.c b/src/backend/regex/regc_pg_locale.c
index ccfcb7198c4..27d1193d706 100644
--- a/src/backend/regex/regc_pg_locale.c
+++ b/src/backend/regex/regc_pg_locale.c
@@ -306,6 +306,7 @@ pg_wc_isdigit(pg_wchar c)
return (c <= (pg_wchar) UCHAR_MAX &&
isdigit_l((unsigned char) c, pg_regex_locale));
#endif
+ break;
}
return 0; /* can't get here, but keep compiler quiet */
}
@@ -338,6 +339,7 @@ pg_wc_isalpha(pg_wchar c)
return (c <= (pg_wchar) UCHAR_MAX &&
isalpha_l((unsigned char) c, pg_regex_locale));
#endif
+ break;
}
return 0; /* can't get here, but keep compiler quiet */
}
@@ -370,6 +372,7 @@ pg_wc_isalnum(pg_wchar c)
return (c <= (pg_wchar) UCHAR_MAX &&
isalnum_l((unsigned char) c, pg_regex_locale));
#endif
+ break;
}
return 0; /* can't get here, but keep compiler quiet */
}
@@ -402,6 +405,7 @@ pg_wc_isupper(pg_wchar c)
return (c <= (pg_wchar) UCHAR_MAX &&
isupper_l((unsigned char) c, pg_regex_locale));
#endif
+ break;
}
return 0; /* can't get here, but keep compiler quiet */
}
@@ -434,6 +438,7 @@ pg_wc_islower(pg_wchar c)
return (c <= (pg_wchar) UCHAR_MAX &&
islower_l((unsigned char) c, pg_regex_locale));
#endif
+ break;
}
return 0; /* can't get here, but keep compiler quiet */
}
@@ -466,6 +471,7 @@ pg_wc_isgraph(pg_wchar c)
return (c <= (pg_wchar) UCHAR_MAX &&
isgraph_l((unsigned char) c, pg_regex_locale));
#endif
+ break;
}
return 0; /* can't get here, but keep compiler quiet */
}
@@ -498,6 +504,7 @@ pg_wc_isprint(pg_wchar c)
return (c <= (pg_wchar) UCHAR_MAX &&
isprint_l((unsigned char) c, pg_regex_locale));
#endif
+ break;
}
return 0; /* can't get here, but keep compiler quiet */
}
@@ -530,6 +537,7 @@ pg_wc_ispunct(pg_wchar c)
return (c <= (pg_wchar) UCHAR_MAX &&
ispunct_l((unsigned char) c, pg_regex_locale));
#endif
+ break;
}
return 0; /* can't get here, but keep compiler quiet */
}
@@ -562,6 +570,7 @@ pg_wc_isspace(pg_wchar c)
return (c <= (pg_wchar) UCHAR_MAX &&
isspace_l((unsigned char) c, pg_regex_locale));
#endif
+ break;
}
return 0; /* can't get here, but keep compiler quiet */
}