summaryrefslogtreecommitdiff
path: root/src/common/wchar.c
diff options
context:
space:
mode:
authorAlvaro Herrera2020-05-13 19:31:14 +0000
committerAlvaro Herrera2020-05-13 19:31:14 +0000
commit17cc133f017cb13737e23ce0da4415daf2c34cc3 (patch)
tree45bd1e33f52902f315aa6364fd9fdf1ff152403a /src/common/wchar.c
parent81ca8686305c4c62d723ab224ad5c414f350a3a0 (diff)
Dial back -Wimplicit-fallthrough to level 3
The additional pain from level 4 is excessive for the gain. Also revert all the source annotation changes to their original wordings, to avoid back-patching pain. Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/common/wchar.c')
-rw-r--r--src/common/wchar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/wchar.c b/src/common/wchar.c
index 352083d7bb1..efaf1c155bb 100644
--- a/src/common/wchar.c
+++ b/src/common/wchar.c
@@ -1452,12 +1452,12 @@ pg_utf8_islegal(const unsigned char *source, int length)
a = source[3];
if (a < 0x80 || a > 0xBF)
return false;
- /* FALLTHROUGH */
+ /* FALL THRU */
case 3:
a = source[2];
if (a < 0x80 || a > 0xBF)
return false;
- /* FALLTHROUGH */
+ /* FALL THRU */
case 2:
a = source[1];
switch (*source)
@@ -1483,7 +1483,7 @@ pg_utf8_islegal(const unsigned char *source, int length)
return false;
break;
}
- /* FALLTHROUGH */
+ /* FALL THRU */
case 1:
a = *source;
if (a >= 0x80 && a < 0xC2)