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:
jan Iversen 2018-07-11 08:46:02 +02:00 committed by Robert C. Helling
parent 0a4dcd59b0
commit b15f6f3d4a

View file

@ -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)