forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc341c7d
committed
Fix some compiler warnings with timestamp parsing in formatting.c
gcc-7 used with a sufficient optimization level complains about warningsaround do_to_timestamp() regarding the initialization and handling ofsome of its variables. Recent commits 66c74f8 andd589f94 made thingsmade the interface more confusing, so document which variables arealways expected and initialize properly the optional ones when they areset.Author: Andrey Lepikhov, Michael PaquierDiscussion:https://postgr.es/m/a7e28b83-27b1-4e1c-c76b-4268c4b785bc@postgrespro.ru1 parent8729fa7 commitc341c7d
1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4128 | 4128 |
| |
4129 | 4129 |
| |
4130 | 4130 |
| |
4131 |
| - | |
| 4131 | + | |
4132 | 4132 |
| |
4133 | 4133 |
| |
4134 | 4134 |
| |
| |||
4318 | 4318 |
| |
4319 | 4319 |
| |
4320 | 4320 |
| |
| 4321 | + | |
| 4322 | + | |
| 4323 | + | |
4321 | 4324 |
| |
4322 | 4325 |
| |
4323 | 4326 |
| |
4324 | 4327 |
| |
4325 | 4328 |
| |
| 4329 | + | |
| 4330 | + | |
| 4331 | + | |
| 4332 | + | |
4326 | 4333 |
| |
4327 | 4334 |
| |
4328 | 4335 |
| |
|
0 commit comments
Comments
(0)