mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
dive.h: don't declare force_fixup_dive() in the header
The compiler complains that said static (not-inline) function in declared in the header but has no definition. The function is only used as a helper in dive.c so so this simply acts as a forward declaration and we can safely remove it from dive.h. The same forward declaration can be in dive.c. Since dive.h is include in *many* translation units, this causes a lot instances of the same warning to be show. If the function becomes part of the API, the static keyword needs to be removed and the declaration needs to be added in the header again. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
43023fa519
commit
3b809f2cd4
1 changed files with 0 additions and 1 deletions
1
dive.h
1
dive.h
|
@ -721,7 +721,6 @@ extern void fixup_dc_duration(struct divecomputer *dc);
|
||||||
extern int dive_getUniqID(struct dive *d);
|
extern int dive_getUniqID(struct dive *d);
|
||||||
extern unsigned int dc_airtemp(struct divecomputer *dc);
|
extern unsigned int dc_airtemp(struct divecomputer *dc);
|
||||||
extern unsigned int dc_watertemp(struct divecomputer *dc);
|
extern unsigned int dc_watertemp(struct divecomputer *dc);
|
||||||
static void force_fixup_dive(struct dive *d);
|
|
||||||
extern int split_dive(struct dive *);
|
extern int split_dive(struct dive *);
|
||||||
extern struct dive *merge_dives(struct dive *a, struct dive *b, int offset, bool prefer_downloaded);
|
extern struct dive *merge_dives(struct dive *a, struct dive *b, int offset, bool prefer_downloaded);
|
||||||
extern struct dive *try_to_merge(struct dive *a, struct dive *b, bool prefer_downloaded);
|
extern struct dive *try_to_merge(struct dive *a, struct dive *b, bool prefer_downloaded);
|
||||||
|
|
Loading…
Reference in a new issue