summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-02 08:52:00 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-10 02:37:03 +0900
commite6210aafc560c303fc72360dca877cde939db98b (patch)
treed9bdb65a384e214e30e1ece05711c0a94afaf2a1 /commands
parent44ddb1411e53d73f9c425b1a9631856435d57ad8 (diff)
downloadsubsurface-e6210aafc560c303fc72360dca877cde939db98b.tar.gz
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>
Diffstat (limited to 'commands')
-rw-r--r--commands/command_divelist.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/command_divelist.cpp b/commands/command_divelist.cpp
index 1d1a90387..acb44f88f 100644
--- a/commands/command_divelist.cpp
+++ b/commands/command_divelist.cpp
@@ -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