mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
core: remove clang warning in divesite.c
Add () in complex condition to avoid clang warning. Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
0a4dcd59b0
commit
b15f6f3d4a
1 changed files with 2 additions and 2 deletions
|
@ -241,11 +241,11 @@ uint32_t create_dive_site_with_gps(const char *name, degrees_t latitude, degrees
|
|||
bool dive_site_is_empty(struct dive_site *ds)
|
||||
{
|
||||
return !ds ||
|
||||
empty_string(ds->name) &&
|
||||
(empty_string(ds->name) &&
|
||||
empty_string(ds->description) &&
|
||||
empty_string(ds->notes) &&
|
||||
ds->latitude.udeg == 0 &&
|
||||
ds->longitude.udeg == 0;
|
||||
ds->longitude.udeg == 0);
|
||||
}
|
||||
|
||||
void copy_dive_site_taxonomy(struct dive_site *orig, struct dive_site *copy)
|
||||
|
|
Loading…
Add table
Reference in a new issue