You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix build errors from libdivecomputer master merge
Three issues introduced by the merge of libdivecomputer/master:
1. parser.h: DC_SAMPLE_LOCATION was added to parsers (divesoft_freedom,
divesystem_idive, halcyon_symbios, shearwater_predator) but the
corresponding enum value was omitted from dc_sample_type_t. Add
DC_SAMPLE_LOCATION after DC_SAMPLE_TTS and add the matching #define
guard for compile-time feature testing.
2. shearwater_predator_parser.c (DC_FIELD_LOCATION case): latitude and
longitude were used but never declared. The upstream version declared
them as signed int inside a block; reproduce that with an explicit
block scope so the variables are properly declared.
3. shearwater_petrel.c: shearwater_common_get_model() returns an
unsigned int, but HEXDUMP expects const unsigned char *. Add an
explicit cast to silence the incompatible-pointer-type error.
Signed-off-by: Michael Keller <github@ike.ch>
0 commit comments