mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
code cleanup: consistently initialize zero duration_t
There were three different ways (two of which generated warnings) in a single source file. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cef30619d0
commit
c81693d023
2 changed files with 20 additions and 19 deletions
|
@ -78,6 +78,8 @@ typedef struct
|
|||
int32_t seconds; // durations up to 34 yrs
|
||||
} duration_t;
|
||||
|
||||
static const duration_t zero_duration = { 0 };
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int32_t seconds; // offsets up to +/- 34 yrs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue