forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd63d486
committed
Remove assertions that some compiler say are tautological
To avoid the compiler warnings: launch_backend.c:211:39: warning: comparison of constant 16 with expression of type 'BackendType' (aka 'enum BackendType') is always true [-Wtautological-constant-out-of-range-compare] launch_backend.c:233:39: warning: comparison of constant 16 with expression of type 'BackendType' (aka 'enum BackendType') is always true [-Wtautological-constant-out-of-range-compare]The point of the assertions was to fail more explicitly if someoneadds a new BackendType to the end of the enum, but forgets to add itto the child_process_kinds array. It was a pretty weak assertion tobegin with, because it wouldn't catch if you added a new BackendTypein the middle of the enum. So let's just remove it.Per buildfarm member ayu and a few others, spotted by Tom Lane.Discussion:https://www.postgresql.org/message-id/4119680.1710913067@sss.pgh.pa.us1 parent9578393 commitd63d486
2 files changed
+3
-2
lines changedLines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
208 | 208 |
| |
209 | 209 |
| |
210 | 210 |
| |
211 |
| - | |
212 | 211 |
| |
213 | 212 |
| |
214 | 213 |
| |
| |||
230 | 229 |
| |
231 | 230 |
| |
232 | 231 |
| |
233 |
| - | |
234 | 232 |
| |
235 | 233 |
| |
236 | 234 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
326 | 326 |
| |
327 | 327 |
| |
328 | 328 |
| |
| 329 | + | |
| 330 | + | |
| 331 | + | |
329 | 332 |
| |
330 | 333 |
| |
331 | 334 |
| |
|
0 commit comments
Comments
(0)