forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4589c6a
committed
Apply project best practices to switches over enum values.
In the wake of1f3a021, assorted buildfarm members were warning about"control reaches end of non-void function" or the like. Do what we'vedone elsewhere: in place of a "default" switch case that will preventthe compiler from warning about unhandled enum values, put a catchallelog() after the switch. And return a dummy value to satisfy compilersthat don't know elog() doesn't return.1 parent73ce2a0 commit4589c6a
1 file changed
+17
-3
lines changedLines changed: 17 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1003 | 1003 |
| |
1004 | 1004 |
| |
1005 | 1005 |
| |
1006 |
| - | |
1007 |
| - | |
1008 | 1006 |
| |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
1009 | 1015 |
| |
1010 | 1016 |
| |
1011 | 1017 |
| |
| |||
1017 | 1023 |
| |
1018 | 1024 |
| |
1019 | 1025 |
| |
1020 |
| - | |
| 1026 | + | |
1021 | 1027 |
| |
1022 | 1028 |
| |
1023 | 1029 |
| |
| |||
1065 | 1071 |
| |
1066 | 1072 |
| |
1067 | 1073 |
| |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
1068 | 1082 |
| |
1069 | 1083 |
| |
1070 | 1084 |
| |
|
0 commit comments
Comments
(0)