mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 22:03:23 +00:00
Mobile: Fix Build Warnings.
Fix build warnings from building functions not used in the mobile version. Signed-off-by: Michael Keller <mikeller@042.ch>
This commit is contained in:
parent
56f1e7027f
commit
5b941ea34e
1 changed files with 1 additions and 1 deletions
|
@ -71,6 +71,7 @@ int get_picture_idx(const struct picture_table *t, const char *filename)
|
|||
return -1;
|
||||
}
|
||||
|
||||
#if !defined(SUBSURFACE_MOBILE)
|
||||
/* Return distance of timestamp to time of dive. Result is always positive, 0 means during dive. */
|
||||
static timestamp_t time_from_dive(const struct dive *d, timestamp_t timestamp)
|
||||
{
|
||||
|
@ -118,7 +119,6 @@ static bool dive_check_picture_time(const struct dive *d, timestamp_t timestamp)
|
|||
return time_from_dive(d, timestamp) < D30MIN;
|
||||
}
|
||||
|
||||
#if !defined(SUBSURFACE_MOBILE)
|
||||
/* Creates a picture and indicates the dive to which this picture should be added.
|
||||
* The caller is responsible for actually adding the picture to the dive.
|
||||
* If no appropriate dive was found, no picture is created and NULL is returned.
|
||||
|
|
Loading…
Add table
Reference in a new issue