From: Tom Lane Date: Sun, 10 Apr 2011 22:44:07 +0000 (-0400) Subject: Insert dummy "break"s to silence compiler complaints. X-Git-Tag: REL9_1_BETA1~115 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7aa3f1d08292d43b983075e190eee964c389e347;p=postgresql Insert dummy "break"s to silence compiler complaints. Apparently some compilers dislike a case label with nothing after it. Per buildfarm. --- diff --git a/src/backend/regex/regc_pg_locale.c b/src/backend/regex/regc_pg_locale.c index ccfcb7198c..27d1193d70 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 */ }