Commit c341c7d
committed
Fix some compiler warnings with timestamp parsing in formatting.c
gcc-7 used with a sufficient optimization level complains about warnings
around do_to_timestamp() regarding the initialization and handling of
some of its variables. Recent commits 66c74f8 and d589f94 made things
made the interface more confusing, so document which variables are
always expected and initialize properly the optional ones when they are
set.
Author: Andrey Lepikhov, Michael Paquier
Discussion: https://postgr.es/m/a7e28b83-27b1-4e1c-c76b-4268c4b785bc@postgrespro.ru1 parent 8729fa7 commit c341c7d
1 file changed
+8
-1
lines changed| 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