diff options
author | jan Iversen <jani@apache.org> | 2018-07-11 08:46:02 +0200 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2018-07-11 12:59:33 +0200 |
commit | b15f6f3d4a38bf0c3877aaeabeab9f74f14ce773 (patch) | |
tree | c0695c627e6315068d1ca5f5b00a6c92c2599779 /core/divesite.c | |
parent | 0a4dcd59b0e1f176630280ea916c296c11633f56 (diff) | |
download | subsurface-b15f6f3d4a38bf0c3877aaeabeab9f74f14ce773.tar.gz |
core: remove clang warning in divesite.c
Add () in complex condition to avoid clang warning.
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/divesite.c')
-rw-r--r-- | core/divesite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/divesite.c b/core/divesite.c index 04f6520b8..3045b580e 100644 --- a/core/divesite.c +++ b/core/divesite.c @@ -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) |