diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-11-25 15:10:03 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-11-25 15:10:03 -0800 |
commit | 61e040898b7b86fec86379f6975a371f1cd7b0f8 (patch) | |
tree | 2849c70291837f69d6a926e53fecd8158f66df06 /dive.c | |
parent | 42240a83ff8e5cfb636dcc31aa2faf99bb19f417 (diff) | |
download | subsurface-61e040898b7b86fec86379f6975a371f1cd7b0f8.tar.gz |
Don't compile unused code to determine offset between samples
Commit bb6b6b49a6d4 "Start merging dives by keeping the dive computer data
from both dives" created a compile time warning. This simply adds an #if /
Yes, this might accelearate bit rod in the code, but I just dislike the
warning message when compiling Subsurface.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
-rw-r--r-- | dive.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -885,6 +885,7 @@ pick_b: pick_trip(res, b); } +#if CURRENTLY_NOT_USED /* * Sample 's' is between samples 'a' and 'b'. It is 'offset' seconds before 'b'. * @@ -1043,6 +1044,7 @@ static int find_sample_offset(struct divecomputer *a, struct divecomputer *b) return best; } +#endif /* * This could do a lot more merging. Right now it really only |