Commit 7db15b3
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 7db15b3
4 files changed
Lines changed: 39 additions & 32 deletions
File tree
- include/libdivecomputer
- src
| 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 | |
|---|---|---|---|
| |||
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
874 | 883 | | |
875 | 884 | | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
881 | 890 | | |
882 | 891 | | |
883 | 892 | | |
| |||
1025 | 1034 | | |
1026 | 1035 | | |
1027 | 1036 | | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
1032 | 1041 | | |
1033 | 1042 | | |
1034 | 1043 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | | - | |
| 195 | + | |
197 | 196 | | |
198 | | - | |
199 | 197 | | |
200 | | - | |
| 198 | + | |
201 | 199 | | |
202 | 200 | | |
203 | 201 | | |
| |||
365 | 363 | | |
366 | 364 | | |
367 | 365 | | |
368 | | - | |
369 | | - | |
| 366 | + | |
370 | 367 | | |
371 | | - | |
372 | 368 | | |
373 | 369 | | |
374 | 370 | | |
| |||
| 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