Commit ID b5623cc5e4197b59d37b869fbd92c1778be0438e
|
Contributor: | Peter Eisentraut | Files Modified | 1 |
| Date: | 20-November-2025 at 06:47 | Lines Added: | 2 | |
| Repository: | https://github.com/postgres/postgres master | Lines Removed: | 2 | |
| Commit Comment: | Remove obsolete cast The upstream timezone code uses a bool variable as an array subscript. Back when PostgreSQL's bool was char, this would have caused a warning from gcc -Wchar-subscripts, which is included in -Wall. But this has been obsolete since probably commit d26a810ebf9, but certainly since bool is now the C standard bool. So we can remove this deviation from the upstream code, to make future code merges simpler. Reviewed-by: Tom Lane <[email protected]> Discussion: https://www.postgresql.org/message-id/flat/9ad2749f-77ab-4ecb-a321-1ca915480b05%40eisentraut.org | |||
| Language | Code Added | Code Removed | Comments Added | Comments Removed | Blanks Added | Blanks Removed | |
|---|---|---|---|---|---|---|---|
| C | 2 | 2 | 0 | 0 | 0 | 0 | |
| File | Language | Code Added | Code Removed | Comments Added | Comments Removed | Blanks Added | Blanks Removed |
|---|---|---|---|---|---|---|---|
| src/timezone/localtime.c | C | 2 | 2 | 0 | 0 | 0 | 0 |