mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: pass all parameters to weightsystem_t
With -Wextra, gcc/g++ complains that compound initialization of weightsystem_t misses the auto_filled parameter. Add it. For C++ code we might think about writing a constructor. However, we use two versions: with and without copied string. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
d89ef3d906
commit
c893d19ea4
5 changed files with 5 additions and 5 deletions
|
@ -1094,7 +1094,7 @@ void smartrak_import(const char *file, struct dive_table *divetable)
|
|||
|
||||
/* No DC related data */
|
||||
smtkdive->visibility = strtod(col[coln(VISIBILITY)]->bind_ptr, NULL) > 25 ? 5 : lrint(strtod(col[13]->bind_ptr, NULL) / 5);
|
||||
weightsystem_t ws = { {lrint(strtod(col[coln(WEIGHT)]->bind_ptr, NULL) * 1000)}, "" };
|
||||
weightsystem_t ws = { {lrint(strtod(col[coln(WEIGHT)]->bind_ptr, NULL) * 1000)}, "", false };
|
||||
add_cloned_weightsystem(&smtkdive->weightsystems, ws);
|
||||
smtkdive->suit = copy_string(suit_list[atoi(col[coln(SUITIDX)]->bind_ptr) - 1]);
|
||||
smtk_build_location(mdb_clon, col[coln(SITEIDX)]->bind_ptr, &smtkdive->dive_site);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue