Commit affdbf8
committed
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>1 parent acb7d69 commit affdbf8
3 files changed
Lines changed: 14 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 129 | | |
133 | 130 | | |
134 | 131 | | |
| |||
1120 | 1117 | | |
1121 | 1118 | | |
1122 | 1119 | | |
1123 | | - | |
1124 | | - | |
1125 | | - | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
1126 | 1124 | | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
1132 | 1131 | | |
1133 | 1132 | | |
1134 | 1133 | | |
| |||
0 commit comments