code cleanup: initialize all elements in structure

This seems silly. I don't like that warning and would rather disable the warning.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-01-02 08:52:00 -08:00
parent 44ddb1411e
commit e6210aafc5
2 changed files with 7 additions and 7 deletions

View file

@ -469,10 +469,10 @@ ImportDives::ImportDives(struct dive_table *dives, struct trip_table *trips, str
// this only matters if undoit were called before redoit
currentDive = nullptr;
struct dive_table dives_to_add = { 0 };
struct dive_table dives_to_remove = { 0 };
struct trip_table trips_to_add = { 0 };
struct dive_site_table sites_to_add = { 0 };
struct dive_table dives_to_add = { 0, 0, 0 };
struct dive_table dives_to_remove = { 0, 0, 0 };
struct trip_table trips_to_add = { 0, 0, 0 };
struct dive_site_table sites_to_add = { 0, 0, 0 };
process_imported_dives(dives, trips, sites, flags, &dives_to_add, &dives_to_remove, &trips_to_add, &sites_to_add);
// Add trips to the divesToAdd.trips structure