Skip to content

Commit 7aa3f1d

Browse files
committed
Insert dummy "break"s to silence compiler complaints.
Apparently some compilers dislike a case label with nothing after it. Per buildfarm.
1 parent c1d82a9 commit 7aa3f1d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/backend/regex/regc_pg_locale.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ pg_wc_isdigit(pg_wchar c)
306306
return (c <= (pg_wchar) UCHAR_MAX &&
307307
isdigit_l((unsigned char) c, pg_regex_locale));
308308
#endif
309+
break;
309310
}
310311
return 0; /* can't get here, but keep compiler quiet */
311312
}
@@ -338,6 +339,7 @@ pg_wc_isalpha(pg_wchar c)
338339
return (c <= (pg_wchar) UCHAR_MAX &&
339340
isalpha_l((unsigned char) c, pg_regex_locale));
340341
#endif
342+
break;
341343
}
342344
return 0; /* can't get here, but keep compiler quiet */
343345
}
@@ -370,6 +372,7 @@ pg_wc_isalnum(pg_wchar c)
370372
return (c <= (pg_wchar) UCHAR_MAX &&
371373
isalnum_l((unsigned char) c, pg_regex_locale));
372374
#endif
375+
break;
373376
}
374377
return 0; /* can't get here, but keep compiler quiet */
375378
}
@@ -402,6 +405,7 @@ pg_wc_isupper(pg_wchar c)
402405
return (c <= (pg_wchar) UCHAR_MAX &&
403406
isupper_l((unsigned char) c, pg_regex_locale));
404407
#endif
408+
break;
405409
}
406410
return 0; /* can't get here, but keep compiler quiet */
407411
}
@@ -434,6 +438,7 @@ pg_wc_islower(pg_wchar c)
434438
return (c <= (pg_wchar) UCHAR_MAX &&
435439
islower_l((unsigned char) c, pg_regex_locale));
436440
#endif
441+
break;
437442
}
438443
return 0; /* can't get here, but keep compiler quiet */
439444
}
@@ -466,6 +471,7 @@ pg_wc_isgraph(pg_wchar c)
466471
return (c <= (pg_wchar) UCHAR_MAX &&
467472
isgraph_l((unsigned char) c, pg_regex_locale));
468473
#endif
474+
break;
469475
}
470476
return 0; /* can't get here, but keep compiler quiet */
471477
}
@@ -498,6 +504,7 @@ pg_wc_isprint(pg_wchar c)
498504
return (c <= (pg_wchar) UCHAR_MAX &&
499505
isprint_l((unsigned char) c, pg_regex_locale));
500506
#endif
507+
break;
501508
}
502509
return 0; /* can't get here, but keep compiler quiet */
503510
}
@@ -530,6 +537,7 @@ pg_wc_ispunct(pg_wchar c)
530537
return (c <= (pg_wchar) UCHAR_MAX &&
531538
ispunct_l((unsigned char) c, pg_regex_locale));
532539
#endif
540+
break;
533541
}
534542
return 0; /* can't get here, but keep compiler quiet */
535543
}
@@ -562,6 +570,7 @@ pg_wc_isspace(pg_wchar c)
562570
return (c <= (pg_wchar) UCHAR_MAX &&
563571
isspace_l((unsigned char) c, pg_regex_locale));
564572
#endif
573+
break;
565574
}
566575
return 0; /* can't get here, but keep compiler quiet */
567576
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy