The Swift Package Index logo.Swift Package Index

Build Information

Successful build of LibDCSwift, reference 1.22.0 (19d0e0), with Swift 6.4 for macOS (SPM) on 19 Nov 2026 21:26:42 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/deepsealabs/libdc-swift.git
Reference: 1.22.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/deepsealabs/libdc-swift
 * tag               1.22.0     -> FETCH_HEAD
HEAD is now at 19d0e0e Merge pull request #93 from deepsealabs/feat/mac-l10-classic-bt
Submodule path 'libdivecomputer': checked out '1b201bb63b2870a4a0804a92b9ba1b7b003aadea'
Submodule 'libdivecomputer' (https://github.com/deepsealabs/libdivecomputer.git) registered for path 'libdivecomputer'
Cloning into '/Users/admin/builder/spi-builder-workspace/libdivecomputer'...
Cloned https://github.com/deepsealabs/libdc-swift.git
Revision (git rev-parse @):
19d0e0ebb81ea382e433305e7848fcea0f184f0b
SUCCESS checkout https://github.com/deepsealabs/libdc-swift.git at 1.22.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "libdc-swift",
      "name": "LibDCSwift",
      "url": "https://github.com/deepsealabs/libdc-swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/libdc-swift",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/deepsealabs/libdc-swift.git
[1/5014] Fetching libdc-swift
Fetched https://github.com/deepsealabs/libdc-swift.git (6.01s)
Creating working copy for https://github.com/deepsealabs/libdc-swift.git
Working copy of https://github.com/deepsealabs/libdc-swift.git resolved at 1.22.0 (19d0e0e)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/deepsealabs/libdc-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0.app xcrun swift build --arch arm64
Building for debugging...
[Pre-planning 1 / 184]
[Planning deferred tasks]
[48 / 308]
[58 / 309] Clibdivecomputer
[66 / 331] Clibdivecomputer
[74 / 333]
[101 / 343]
[123 / 343] Clibdivecomputer
[159 / 350] Clibdivecomputer
[189 / 384] Clibdivecomputer
[199 / 384] Clibdivecomputer
[216 / 384] Clibdivecomputer
[234 / 384] Clibdivecomputer
[252 / 384] Clibdivecomputer
[278 / 384] Clibdivecomputer
[305 / 384] Clibdivecomputer
[324 / 464]
[341 / 464] Clibdivecomputer
[345 / 464]
[361 / 464]
[369 / 464]
[377 / 464]
[381 / 464]
[389 / 464] Clibdivecomputer
[393 / 464]
[398 / 464]
[400 / 464]
[404 / 464]
[410 / 464]
[413 / 464] LibDCBridge
[415 / 464]
[420 / 464]
[422 / 464]
[423 / 464]
[434 / 464]
[437 / 464]
[438 / 464]
[441 / 464]
[443 / 464]
[455 / 464] LibDCSwift
[456 / 464] LibDCSwift
[461 / 464] LibDCSwift
Build complete! (12.68 sec)
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/seac_screen_common.c:23:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/zeagle_n2ition3.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/zeagle_n2ition3.c:245:3: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  244 |         return device_dump_read (abstract, 0, dc_buffer_get_data (buffer),
      |                ~~~~~~~~~~~~~~~~
  245 |                 dc_buffer_get_size (buffer), SZ_PACKET);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/uwatec_memomouse_parser.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/usbhid.c:58:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/uwatec_aladin.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/uwatec_aladin.c:255:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  254 |         rc = uwatec_aladin_extract_dives (abstract,
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  255 |                 dc_buffer_get_data (buffer), dc_buffer_get_size (buffer), callback, userdata);
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/usb.c:40:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/uwatec_memomouse.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/uwatec_memomouse.c:460:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  459 |         rc = uwatec_memomouse_extract_dives (abstract,
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  460 |                 dc_buffer_get_data (buffer), dc_buffer_get_size (buffer), callback, userdata);
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
/Users/admin/builder/spi-builder-workspace/Sources/LibDCBridge/src/configuredc.c:269:92: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  269 |                     dc_status_t fp_status = dc_device_set_fingerprint(device, fingerprint, fsize);
      |                                             ~~~~~~~~~~~~~~~~~~~~~~~~~                      ^~~~~
/Users/admin/builder/spi-builder-workspace/Sources/LibDCBridge/src/configuredc.c:274:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  274 |                     devdata->fsize = fsize;
      |                                    ~ ^~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/uwatec_smart_parser.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/uwatec_smart.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/uwatec_smart.c:175:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  175 |         packet[12 + size] = checksum_xor_uint8 (packet + 7, size + 5, 0x00);
      |                             ~~~~~~~~~~~~~~~~~~              ~~~~~^~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/uwatec_smart.c:298:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  298 |         HEXDUMP (abstract->context, DC_LOGLEVEL_DEBUG, "cmd", buf + 2, size + 1);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/uwatec_smart.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:46:139: note: expanded from macro 'HEXDUMP'
   46 | #define HEXDUMP(context, loglevel, prefix, data, size) dc_context_hexdump (context, loglevel, __FILE__, __LINE__, FUNCTION, prefix, data, size)
      |                                                        ~~~~~~~~~~~~~~~~~~                                                                 ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/uwatec_smart.c:376:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  376 |                 unsigned int len = transferred - 1;
      |                              ~~~   ~~~~~~~~~~~~^~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/uwatec_smart.c:702:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  701 |         rc = uwatec_smart_extract_dives (abstract,
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~
  702 |                 dc_buffer_get_data (buffer), dc_buffer_get_size (buffer), callback, userdata);
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
5 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/tecdiving_divecomputereu_parser.c:25:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_solution.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_solution.c:249:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  248 |         rc = suunto_solution_extract_dives (abstract,
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  249 |                 dc_buffer_get_data (buffer), dc_buffer_get_size (buffer), callback, userdata);
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_solution_parser.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/tecdiving_divecomputereu.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/tecdiving_divecomputereu.c:123:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  123 |         crc = checksum_crc (packet + 1, size + 6, 0);
      |               ~~~~~~~~~~~~              ~~~~~^~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/tecdiving_divecomputereu.c:531:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  531 |                 unsigned int size = dc_buffer_get_size(buffer);
      |                              ~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_vyper2.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_vyper2.c:233:58: warning: implicit conversion loses integer precision: 'dc_usecs_t' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32]
  233 |                 dc_iostream_sleep (device->iostream, (remaining + 999) / 1000);
      |                 ~~~~~~~~~~~~~~~~~                    ~~~~~~~~~~~~~~~~~~^~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_vyper_parser.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_vyper.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_vyper.c:420:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  420 |         array_reverse_bytes (dc_buffer_get_data (buffer), dc_buffer_get_size (buffer));
      |         ~~~~~~~~~~~~~~~~~~~                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_vyper.c:439:3: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  438 |         status = device_dump_read (abstract, 0, dc_buffer_get_data (buffer),
      |                  ~~~~~~~~~~~~~~~~
  439 |                 dc_buffer_get_size (buffer), SZ_PACKET);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_vyper.c:516:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  516 |                 unsigned int size = dc_buffer_get_size (buffer);
      |                              ~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_nautic_parser.c:57:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_eon_parser.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_eon.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_eon.c:154:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  154 |                         len = available;
      |                             ~ ^~~~~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_eonsteel.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_eonsteel.c:199:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  199 |         unsigned int nbytes = transferred - CRC_SIZE;
      |                      ~~~~~~   ~~~~~~~~~~~~^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_eonsteel.c:410:25: warning: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Wshorten-64-to-32]
  410 |         len = strlen(filename) + 1;
      |             ~ ~~~~~~~~~~~~~~~~~^~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_eonsteel.c:791:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  791 |                         size = dc_buffer_get_size(file);
      |                              ~ ^~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_d9.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_common2.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_common2.c:222:3: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  221 |         return device_dump_read (abstract, 0, dc_buffer_get_data (buffer),
      |                ~~~~~~~~~~~~~~~~
  222 |                 dc_buffer_get_size (buffer), SZ_PACKET);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_d9_parser.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/sporasub_sp2_parser.c:25:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_eonsteel_parser.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_eonsteel_parser.c:309:15: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  309 |                         len = next - name;
      |                             ~ ~~~~~^~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_eonsteel_parser.c:312:10: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
  312 |                         len = strlen(name);
      |                             ~ ^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_eonsteel_parser.c:432:13: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
  432 |         return end - p;
      |         ~~~~~~ ~~~~^~~
4 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_nautic.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_nautic.c:228:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  228 |         unsigned int crc = checksum_crc32r (packet, 6 + size);
      |                            ~~~~~~~~~~~~~~~          ~~^~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_nautic.c:268:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  268 |                 unsigned int ccrc = checksum_crc32r (packet, length - 4);
      |                                     ~~~~~~~~~~~~~~~          ~~~~~~~^~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_nautic.c:587:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  587 |         unsigned int offset = dc_buffer_get_size (buffer);
      |                      ~~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_nautic.c:937:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  937 |         array_uint32_le_set (header + RESUME_SIZE, size);
      |         ~~~~~~~~~~~~~~~~~~~                        ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_nautic.c:1372:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
 1372 |         unsigned int count = dc_buffer_get_size (entries) / ENTRY_SIZE;
      |                      ~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_nautic.c:1416:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
 1416 |                 if (callback && !callback (dc_buffer_get_data (buffer), dc_buffer_get_size (buffer), fingerprint, sizeof (fingerprint), userdata))
      |                                  ~~~~~~~~                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_nautic.c:1452:69: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
 1452 |         array_uint32_le_set (packet + 6 + size, checksum_crc32r (packet, 6 + size));
      |                                                 ~~~~~~~~~~~~~~~          ~~^~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_nautic.c:1581:52: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
 1581 |         unsigned int count = dc_buffer_get_size (entries) / ENTRY_SIZE;
      |                      ~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/suunto_nautic.c:1669:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
 1669 |                 unsigned int count = dc_buffer_get_size (entries) / ENTRY_SIZE;
      |                              ~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
10 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/shearwater_predator.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/shearwater_predator.c:165:3: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  164 |         rc = shearwater_predator_extract_dives (abstract, dc_buffer_get_data (buffer),
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  165 |                 dc_buffer_get_size (buffer), callback, userdata);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/sporasub_sp2.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/sporasub_sp2.c:369:3: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  368 |         return device_dump_read (abstract, 0, dc_buffer_get_data (buffer),
      |                ~~~~~~~~~~~~~~~~
  369 |                 dc_buffer_get_size (buffer), SZ_READ);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/shearwater_petrel.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/shearwater_petrel.c:262:90: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  262 |                 HEXDUMP(abstract->context, DC_LOGLEVEL_DEBUG, "Manifest", dc_buffer_get_data (buffer), dc_buffer_get_size (buffer));
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/shearwater_petrel.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:46:139: note: expanded from macro 'HEXDUMP'
   46 | #define HEXDUMP(context, loglevel, prefix, data, size) dc_context_hexdump (context, loglevel, __FILE__, __LINE__, FUNCTION, prefix, data, size)
      |                                                        ~~~~~~~~~~~~~~~~~~                                                                 ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/shearwater_petrel.c:266:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  266 |                 unsigned int size = dc_buffer_get_size (buffer);
      |                              ~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/shearwater_petrel.c:315:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  315 |         unsigned int size = dc_buffer_get_size (manifests);
      |                      ~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/shearwater_petrel.c:342:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  342 |                 unsigned int len = dc_buffer_get_size (buffer);
      |                              ~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
5 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/shearwater_common.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/shearwater_common.c:559:70: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  559 |                 if (shearwater_common_decompress_xor (dc_buffer_get_data (buffer), dc_buffer_get_size (buffer)) != 0) {
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/seac_screen_parser.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/reefnet_sensusultra_parser.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/shearwater_predator_parser.c:29:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/reefnet_sensuspro_parser.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/seac_screen.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/seac_screen.c:155:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  155 |         unsigned len = size + 6;
      |                  ~~~   ~~~~~^~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/seac_screen.c:166:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  166 |         crc = checksum_crc16_ccitt (packet, size + 5, 0xFFFF, 0x0000);
      |               ~~~~~~~~~~~~~~~~~~~~          ~~~~~^~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/seac_screen.c:245:51: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  245 |         unsigned int expected = (type == ACK ? size : 1) + 7;
      |                      ~~~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/seac_screen.c:510:3: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  509 |         return device_dump_read (abstract, layout->rb_profile_begin, dc_buffer_get_data (buffer),
      |                ~~~~~~~~~~~~~~~~
  510 |                 dc_buffer_get_size (buffer), SZ_READ);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
5 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/reefnet_sensus_parser.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/reefnet_sensuspro.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/reefnet_sensuspro.c:311:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  310 |         rc = reefnet_sensuspro_extract_dives (abstract,
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  311 |                 dc_buffer_get_data (buffer), dc_buffer_get_size (buffer), callback, userdata);
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/rbstream.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/reefnet_sensusultra.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/reefnet_sensusultra.c:587:57: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  587 |         while ((current = array_search_backward (data, current - data, header, sizeof (header))) != NULL) {
      |                           ~~~~~~~~~~~~~~~~~~~~~        ~~~~~~~~^~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/reefnet_sensusultra.c:600:70: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  600 |                         previous = array_search_forward (current + 16, previous - current - 16, footer, sizeof (footer));
      |                                    ~~~~~~~~~~~~~~~~~~~~                ~~~~~~~~~~~~~~~~~~~^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/reefnet_sensusultra.c:618:49: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  618 |                         if (callback && !callback (current, previous - current, current + 4, 4, userdata)) {
      |                                          ~~~~~~~~           ~~~~~~~~~^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/reefnet_sensusultra.c:629:38: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  629 |                 *premaining = *pprevious = current - data;
      |                                          ~ ~~~~~~~~^~~~~~
5 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/reefnet_sensus.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/reefnet_sensus.c:351:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  350 |         rc = reefnet_sensus_extract_dives (abstract,
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  351 |                 dc_buffer_get_data (buffer), dc_buffer_get_size (buffer), callback, userdata);
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/pelagic_i330r.c:31:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/pelagic_i330r.c:322:41: warning: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Wshorten-64-to-32]
  322 |         unsigned int offset = sizeof(passcode) - len;
      |                      ~~~~~~   ~~~~~~~~~~~~~~~~~^~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/parser.c:70:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/parser.c:289:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  289 |                 parser->size = size;
      |                              ~ ^~~~
2 warnings generated.
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/oceans_s1_common.c:67:13: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
   67 |         return len - strip;
      |         ~~~~~~ ~~~~^~~~~~~
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/packet.c:29:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/oceans_s1_parser.c:29:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/oceanic_vtpro_parser.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/oceanic_veo250_parser.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/oceans_s1.c:30:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/oceans_s1.c:305:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  305 |         unsigned short ccrc = checksum_crc16_ccitt (packet + 3, nbytes - 5, 0x0000, 0x0000);
      |                               ~~~~~~~~~~~~~~~~~~~~              ~~~~~~~^~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/oceans_s1.c:681:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  681 |                 if (callback && !callback (dc_buffer_get_data (buffer), dc_buffer_get_size (buffer), fingerprint, sizeof(fingerprint), userdata))
      |                                  ~~~~~~~~                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/oceanic_vtpro.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/oceanic_veo250.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mclean_extreme_parser.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/oceanic_atom2.c:29:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/oceanic_common.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/oceanic_common.c:207:3: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  206 |         status = device_dump_read (abstract, 0, dc_buffer_get_data (buffer),
      |                  ~~~~~~~~~~~~~~~~
  207 |                 dc_buffer_get_size (buffer), PAGESIZE * device->multipage);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/oceanic_common.c:462:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  462 |         unsigned int rb_logbook_size = dc_buffer_get_size (logbook);
      |                      ~~~~~~~~~~~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mclean_extreme.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mclean_extreme.c:136:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  136 |         crc = checksum_crc(packet + 1, size + 6, 0);
      |               ~~~~~~~~~~~~             ~~~~~^~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mclean_extreme.c:508:33: warning: implicit conversion loses integer precision: 'dc_ticks_t' (aka 'long long') to 'unsigned int' [-Wshorten-64-to-32]
  508 |         unsigned int timestamp = ticks - EPOCH;
      |                      ~~~~~~~~~   ~~~~~~^~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mclean_extreme.c:555:67: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  555 |         HEXDUMP (abstract->context, DC_LOGLEVEL_DEBUG, "Serial", serial, serial_len);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mclean_extreme.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:46:139: note: expanded from macro 'HEXDUMP'
   46 | #define HEXDUMP(context, loglevel, prefix, data, size) dc_context_hexdump (context, loglevel, __FILE__, __LINE__, FUNCTION, prefix, data, size)
      |                                                        ~~~~~~~~~~~~~~~~~~                                                                 ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mclean_extreme.c:608:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  608 |                 unsigned int size = dc_buffer_get_size(buffer);
      |                              ~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~
5 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_puck.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_puck.c:208:3: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  207 |         status = device_dump_read (abstract, 0, dc_buffer_get_data (buffer),
      |                  ~~~~~~~~~~~~~~~~
  208 |                 dc_buffer_get_size (buffer), PACKETSIZE);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_nemo_parser.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_nemo.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/oceanic_atom2_parser.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_iconhd_parser.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_darwin_parser.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/iterator.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_darwin.c:30:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_darwin.c:205:3: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  204 |         status = device_dump_read (abstract, 0, dc_buffer_get_data (buffer),
      |                  ~~~~~~~~~~~~~~~~
  205 |                 dc_buffer_get_size (buffer), PACKETSIZE);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_darwin.c:240:3: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  239 |         rc = mares_darwin_extract_dives (abstract, dc_buffer_get_data (buffer),
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~
  240 |                 dc_buffer_get_size (buffer), callback, userdata);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_common.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/liquivision_lynx_parser.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/iostream.c:29:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/iostream.c:200:80: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  200 |         HEXDUMP (iostream->context, DC_LOGLEVEL_INFO, "Read", (unsigned char *) data, nbytes);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/iostream.c:29:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:46:139: note: expanded from macro 'HEXDUMP'
   46 | #define HEXDUMP(context, loglevel, prefix, data, size) dc_context_hexdump (context, loglevel, __FILE__, __LINE__, FUNCTION, prefix, data, size)
      |                                                        ~~~~~~~~~~~~~~~~~~                                                                 ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/iostream.c:221:87: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  221 |         HEXDUMP (iostream->context, DC_LOGLEVEL_INFO, "Write", (const unsigned char *) data, nbytes);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/iostream.c:29:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:46:139: note: expanded from macro 'HEXDUMP'
   46 | #define HEXDUMP(context, loglevel, prefix, data, size) dc_context_hexdump (context, loglevel, __FILE__, __LINE__, FUNCTION, prefix, data, size)
      |                                                        ~~~~~~~~~~~~~~~~~~                                                                 ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/iostream.c:252:88: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  252 |                 HEXDUMP (iostream->context, DC_LOGLEVEL_INFO, "Ioctl write", (unsigned char *) data, size);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/iostream.c:29:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:46:139: note: expanded from macro 'HEXDUMP'
   46 | #define HEXDUMP(context, loglevel, prefix, data, size) dc_context_hexdump (context, loglevel, __FILE__, __LINE__, FUNCTION, prefix, data, size)
      |                                                        ~~~~~~~~~~~~~~~~~~                                                                 ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/iostream.c:258:87: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  258 |                 HEXDUMP (iostream->context, DC_LOGLEVEL_INFO, "Ioctl read", (unsigned char *) data, size);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/iostream.c:29:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:46:139: note: expanded from macro 'HEXDUMP'
   46 | #define HEXDUMP(context, loglevel, prefix, data, size) dc_context_hexdump (context, loglevel, __FILE__, __LINE__, FUNCTION, prefix, data, size)
      |                                                        ~~~~~~~~~~~~~~~~~~                                                                 ^~~~
5 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_iconhd.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_iconhd.c:389:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  389 |                 *actual = length - 2;
      |                         ~ ~~~~~~~^~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_iconhd.c:802:3: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  801 |         status = device_dump_read (abstract, 0, dc_buffer_get_data (buffer),
      |                  ~~~~~~~~~~~~~~~~
  802 |                 dc_buffer_get_size (buffer), device->packetsize);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_iconhd.c:1054:87: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
 1054 |         HEXDUMP (abstract->context, DC_LOGLEVEL_DEBUG, "Model", dc_buffer_get_data (buffer), dc_buffer_get_size (buffer));
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_iconhd.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:46:139: note: expanded from macro 'HEXDUMP'
   46 | #define HEXDUMP(context, loglevel, prefix, data, size) dc_context_hexdump (context, loglevel, __FILE__, __LINE__, FUNCTION, prefix, data, size)
      |                                                        ~~~~~~~~~~~~~~~~~~                                                                 ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_iconhd.c:1076:88: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
 1076 |         HEXDUMP (abstract->context, DC_LOGLEVEL_DEBUG, "Serial", dc_buffer_get_data (buffer), dc_buffer_get_size (buffer));
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_iconhd.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:46:139: note: expanded from macro 'HEXDUMP'
   46 | #define HEXDUMP(context, loglevel, prefix, data, size) dc_context_hexdump (context, loglevel, __FILE__, __LINE__, FUNCTION, prefix, data, size)
      |                                                        ~~~~~~~~~~~~~~~~~~                                                                 ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/mares_iconhd.c:1146:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
 1146 |                 if (callback && !callback (data, dc_buffer_get_size (buffer), data + 0x08, device->fingerprint_size, userdata)) {
      |                                  ~~~~~~~~        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
6 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/liquivision_lynx.c:29:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/liquivision_lynx.c:390:3: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  389 |         return device_dump_read (abstract, 0, dc_buffer_get_data (buffer),
      |                ~~~~~~~~~~~~~~~~
  390 |                 dc_buffer_get_size (buffer), SEGMENTSIZE);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/ihex.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/hdlc.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/hw_ostc.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/hw_ostc.c:255:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  255 |                         len = available;
      |                             ~ ^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/hw_ostc.c:307:3: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  306 |         rc = hw_ostc_extract_dives (abstract, dc_buffer_get_data (buffer),
      |              ~~~~~~~~~~~~~~~~~~~~~
  307 |                 dc_buffer_get_size (buffer), callback, userdata);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/hw_ostc.c:613:70: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  613 |         while ((current = array_search_backward (data + 266, current - data - 266, header, sizeof (header))) != NULL) {
      |                           ~~~~~~~~~~~~~~~~~~~~~              ~~~~~~~~~~~~~~~^~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/hw_ostc.c:620:54: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  620 |                 previous = array_search_forward (current, previous - current, footer, sizeof (footer));
      |                            ~~~~~~~~~~~~~~~~~~~~           ~~~~~~~~~^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/hw_ostc.c:629:49: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
  629 |                         if (callback && !callback (current, previous - current, current + 3, 5, userdata))
      |                                          ~~~~~~~~           ~~~~~~~~~^~~~~~~~~
6 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/hw_ostc_parser.c:29:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/divesystem_idive_parser.c:25:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/halcyon_symbios_parser.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/halcyon_symbios.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/halcyon_symbios.c:149:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  149 |         unsigned char ccrc = checksum_crc8 (packet + 1, len - 2, 0x00, 0x00);
      |                              ~~~~~~~~~~~~~              ~~~~^~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/halcyon_symbios.c:200:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  200 |         length = len - 3;
      |                ~ ~~~~^~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/halcyon_symbios.c:514:66: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  514 |         HEXDUMP (abstract->context, DC_LOGLEVEL_DEBUG, "Logbook", data, size);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/halcyon_symbios.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:46:139: note: expanded from macro 'HEXDUMP'
   46 | #define HEXDUMP(context, loglevel, prefix, data, size) dc_context_hexdump (context, loglevel, __FILE__, __LINE__, FUNCTION, prefix, data, size)
      |                                                        ~~~~~~~~~~~~~~~~~~                                                                 ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/halcyon_symbios.c:518:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  518 |         unsigned int offset = size;
      |                      ~~~~~~   ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/halcyon_symbios.c:535:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  535 |         offset = size;
      |                ~ ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/halcyon_symbios.c:560:57: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  560 |                 if (callback && !callback (dc_buffer_get_data (dive), dc_buffer_get_size (dive), data + offset + FP_OFFSET, FP_SIZE, userdata)) {
      |                                  ~~~~~~~~                             ^~~~~~~~~~~~~~~~~~~~~~~~~
7 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/divesystem_idive.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/divesystem_idive.c:580:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  580 |                 unsigned int   size = dc_buffer_get_size(buffer);
      |                                ~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/divesystem_idive.c:762:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  760 |         int rc = array_convert_hex2bin (
      |                  ~~~~~~~~~~~~~~~~~~~~~
  761 |                 dc_buffer_get_data (tmp), dc_buffer_get_size (tmp),
  762 |                 dc_buffer_get_data (buffer), dc_buffer_get_size (buffer));
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/divesystem_idive.c:761:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  760 |         int rc = array_convert_hex2bin (
      |                  ~~~~~~~~~~~~~~~~~~~~~
  761 |                 dc_buffer_get_data (tmp), dc_buffer_get_size (tmp),
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/divesystem_idive.c:871:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  871 |         progress.maximum = size;
      |                          ~ ^~~~
5 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/hw_ostc3.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/hw_ostc3.c:1369:62: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
 1369 |         unsigned int csum2 = hw_ostc3_firmware_checksum (data, size - 4);
      |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~        ~~~~~^~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/hw_ostc3.c:1630:21: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
 1630 |         progress.maximum = dc_buffer_get_size (buffer);
      |                          ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/hw_ostc3.c:1635:22: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
 1635 |         unsigned int size = dc_buffer_get_size (buffer);
      |                      ~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/divesoft_freedom.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/divesoft_freedom.c:115:59: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  115 |                 unsigned short crc = checksum_crc16r_ccitt (packet, len + 6, 0xFFFF, 0xFFFF);
      |                                      ~~~~~~~~~~~~~~~~~~~~~          ~~~~^~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/divesoft_freedom.c:118:73: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  118 |                 HEXDUMP (abstract->context, DC_LOGLEVEL_DEBUG, "cmd", packet, 6 + len + 2);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/divesoft_freedom.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:46:139: note: expanded from macro 'HEXDUMP'
   46 | #define HEXDUMP(context, loglevel, prefix, data, size) dc_context_hexdump (context, loglevel, __FILE__, __LINE__, FUNCTION, prefix, data, size)
      |                                                        ~~~~~~~~~~~~~~~~~~                                                                 ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/divesoft_freedom.c:153:65: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  153 |                 HEXDUMP (abstract->context, DC_LOGLEVEL_DEBUG, "rcv", packet, len);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/divesoft_freedom.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:46:139: note: expanded from macro 'HEXDUMP'
   46 | #define HEXDUMP(context, loglevel, prefix, data, size) dc_context_hexdump (context, loglevel, __FILE__, __LINE__, FUNCTION, prefix, data, size)
      |                                                        ~~~~~~~~~~~~~~~~~~                                                                 ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/divesoft_freedom.c:189:60: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  189 |                 unsigned short ccrc = checksum_crc16r_ccitt (packet, len - 2, 0xFFFF, 0xFFFF);
      |                                       ~~~~~~~~~~~~~~~~~~~~~          ~~~~^~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/divesoft_freedom.c:584:58: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  584 |                 if (callback && !callback (dc_buffer_get_data(buffer), dc_buffer_get_size(buffer), fingerprint, sizeof (device->fingerprint), userdata)) {
      |                                  ~~~~~~~~                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
6 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/divesoft_freedom_parser.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/diverite_nitekq_parser.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/diverite_nitekq.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/diverite_nitekq.c:336:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  335 |         rc = diverite_nitekq_extract_dives (abstract,
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  336 |                 dc_buffer_get_data (buffer), dc_buffer_get_size (buffer), callback, userdata);
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/device.c:72:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/deepblu_cosmiq_parser.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/deepsix_excursion.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/deepsix_excursion.c:457:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  457 |                 unsigned int   size = dc_buffer_get_size(buffer);
      |                                ~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/deepsix_excursion_parser.c:30:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/datetime.c:130:19: warning: implicit conversion loses integer precision: 'time_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
  130 |         offset = t_local - t;
      |                ~ ~~~~~~~~^~~
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/custom.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/deepblu_cosmiq.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/deepblu_cosmiq.c:114:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  114 |         unsigned char csum = ~checksum_add_uint8 (data, size, cmd + 2 * size) + 1;
      |                               ~~~~~~~~~~~~~~~~~~        ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/deepblu_cosmiq.c:125:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  125 |         array_convert_bin2hex (raw, 3 + size, packet + 1, 2 * (3 + size));
      |         ~~~~~~~~~~~~~~~~~~~~~                             ~~^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/deepblu_cosmiq.c:125:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  125 |         array_convert_bin2hex (raw, 3 + size, packet + 1, 2 * (3 + size));
      |         ~~~~~~~~~~~~~~~~~~~~~       ~~^~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/deepblu_cosmiq.c:128:66: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  128 |         HEXDUMP (device->base.context, DC_LOGLEVEL_DEBUG, "cmd", raw, 3 + size);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/deepblu_cosmiq.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:46:139: note: expanded from macro 'HEXDUMP'
   46 | #define HEXDUMP(context, loglevel, prefix, data, size) dc_context_hexdump (context, loglevel, __FILE__, __LINE__, FUNCTION, prefix, data, size)
      |                                                        ~~~~~~~~~~~~~~~~~~                                                                 ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/deepblu_cosmiq.c:228:61: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  228 |         if (array_convert_hex2bin (packet + 1, length, raw, length / 2) != 0) {
      |             ~~~~~~~~~~~~~~~~~~~~~                           ~~~~~~~^~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/deepblu_cosmiq.c:228:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  228 |         if (array_convert_hex2bin (packet + 1, length, raw, length / 2) != 0) {
      |             ~~~~~~~~~~~~~~~~~~~~~              ^~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/deepblu_cosmiq.c:235:64: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  235 |         HEXDUMP (device->base.context, DC_LOGLEVEL_DEBUG, "rcv", raw, length);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/deepblu_cosmiq.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:46:139: note: expanded from macro 'HEXDUMP'
   46 | #define HEXDUMP(context, loglevel, prefix, data, size) dc_context_hexdump (context, loglevel, __FILE__, __LINE__, FUNCTION, prefix, data, size)
      |                                                        ~~~~~~~~~~~~~~~~~~                                                                 ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/deepblu_cosmiq.c:249:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  249 |         unsigned char csum = checksum_add_uint8 (raw, length, 0);
      |                              ~~~~~~~~~~~~~~~~~~       ^~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/deepblu_cosmiq.c:313:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  313 |                         progress->current = initial + STEP(nbytes, size);
      |                                           ~ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~
10 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cressi_leonardo_parser.c:25:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cressi_leonardo.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cressi_leonardo.c:341:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  341 |                         len = available;
      |                             ~ ^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cressi_leonardo.c:405:3: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  404 |         rc = cressi_leonardo_extract_dives (abstract, dc_buffer_get_data (buffer),
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |                 dc_buffer_get_size (buffer), callback, userdata);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cressi_edy_parser.c:25:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cressi_goa_parser.c:25:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context.c:37:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cressi_edy.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cressi_edy.c:420:3: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  419 |         return device_dump_read (abstract, 0, dc_buffer_get_data (buffer),
      |                ~~~~~~~~~~~~~~~~
  420 |                 dc_buffer_get_size (buffer), device->packetsize);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cressi_goa.c:29:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cressi_goa.c:525:69: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  525 |         HEXDUMP (abstract->context, DC_LOGLEVEL_DEBUG, "Version", id_data, id_size);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cressi_goa.c:29:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:46:139: note: expanded from macro 'HEXDUMP'
   46 | #define HEXDUMP(context, loglevel, prefix, data, size) dc_context_hexdump (context, loglevel, __FILE__, __LINE__, FUNCTION, prefix, data, size)
      |                                                        ~~~~~~~~~~~~~~~~~~                                                                 ^~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cressi_goa.c:567:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  567 |         vendor.size = id_size;
      |                     ~ ^~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cressi_goa.c:602:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  602 |         unsigned int offset = logbook_size;
      |                      ~~~~~~   ^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cressi_goa.c:633:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  633 |         offset = logbook_size;
      |                ~ ^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cressi_goa.c:674:54: warning: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Wshorten-64-to-32]
  674 |                 unsigned int headersize = sizeof(header) + id_size + conf->logbook_len;
      |                              ~~~~~~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cressi_goa.c:686:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  686 |                 if (callback && !callback(dive_data, dive_size, dive_data + headersize + conf->dive_fp_offset, sizeof(device->fingerprint), userdata))
      |                                  ~~~~~~~~            ^~~~~~~~~
7 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/citizen_aqualand_parser.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cochran_commander_parser.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/citizen_aqualand.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/citizen_aqualand.c:203:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  203 |         unsigned int   size = dc_buffer_get_size (buffer);
      |                        ~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/cochran_commander.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/atomics_cobalt_parser.c:27:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/atomics_cobalt.c:28:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/atomics_cobalt.c:347:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
  347 |                 unsigned int size = dc_buffer_get_size (buffer);
      |                              ~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/bluetooth.c:51:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/irda.c:47:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/socket.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/Sources/LibDCBridge/src/btserial.c:26:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /Users/admin/builder/spi-builder-workspace/libdivecomputer/src/serial_posix.c:57:
/Users/admin/builder/spi-builder-workspace/libdivecomputer/src/context-private.h:51:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   51 | #define DEBUG(context, ...) dc_context_log (context, DC_LOGLEVEL_DEBUG, __FILE__, __LINE__, FUNCTION, __VA_ARGS__)
      |         ^
In file included from <built-in>:485:
<command line>:1:9: note: previous definition is here
    1 | #define DEBUG 1
      |         ^
1 warning generated.
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticAutoSync.swift:369:19: warning: capture of 'attempt' with non-Sendable type 'ConnectAttempt' in a '@Sendable' closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
367 |         // Wall-clock, so a device that slept past the deadline fires as soon as it wakes.
368 |         DispatchQueue.global().asyncAfter(wallDeadline: .now() + timeout) { [weak self, connector = self.connector] in
369 |             guard attempt.expire() else { return }
    |                   `- warning: capture of 'attempt' with non-Sendable type 'ConnectAttempt' in a '@Sendable' closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
370 |             self?.emit(.log("No connection after \(Int(timeout)) s: \(Self.unreachableHint)"))
371 |             self?.emit(.watchUnreachable(after: timeout))
    :
722 |
723 | /// Settles the race between a connect finishing and its timeout firing.
724 | private final class ConnectAttempt {
    |                     `- note: class 'ConnectAttempt' does not conform to the 'Sendable' protocol
725 |     private let lock = NSLock()
726 |     private var settled = false
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticAutoSync.swift:370:13: warning: capture of 'self' with non-Sendable type 'NauticAutoSync?' in a '@Sendable' closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
 24 | ///
 25 | /// Never writes to the watch: dives stay unsynchronised for the Suunto app.
 26 | public final class NauticAutoSync {
    |                    `- note: class 'NauticAutoSync' does not conform to the 'Sendable' protocol
 27 |     public struct Configuration {
 28 |         public var reconnect: ReconnectPolicy = .suuntoApp
    :
368 |         DispatchQueue.global().asyncAfter(wallDeadline: .now() + timeout) { [weak self, connector = self.connector] in
369 |             guard attempt.expire() else { return }
370 |             self?.emit(.log("No connection after \(Int(timeout)) s: \(Self.unreachableHint)"))
    |             `- warning: capture of 'self' with non-Sendable type 'NauticAutoSync?' in a '@Sendable' closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
371 |             self?.emit(.watchUnreachable(after: timeout))
372 |             connector.cancelConnect()
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticAutoSync.swift:372:13: warning: capture of 'connector' with non-Sendable type 'any NauticSyncConnector' in a '@Sendable' closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
370 |             self?.emit(.log("No connection after \(Int(timeout)) s: \(Self.unreachableHint)"))
371 |             self?.emit(.watchUnreachable(after: timeout))
372 |             connector.cancelConnect()
    |             `- warning: capture of 'connector' with non-Sendable type 'any NauticSyncConnector' in a '@Sendable' closure [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures\SendableClosureCaptures]8;;\]
373 |         }
374 |         do {
/Users/admin/builder/spi-builder-workspace/Sources/LibDCSwift/AutoSync/NauticSyncLink.swift:29:17: note: protocol 'NauticSyncConnector' does not conform to the 'Sendable' protocol
 27 |
 28 | /// Finds and opens the watch.
 29 | public protocol NauticSyncConnector: AnyObject {
    |                 `- note: protocol 'NauticSyncConnector' does not conform to the 'Sendable' protocol
 30 |     /// Returns true once the watch is seen, false after `timeout` (nil waits indefinitely).
 31 |     func waitUntilPresent(timeout: TimeInterval?) async throws -> Bool
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "LibDCSwift",
  "name" : "LibDCSwift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "LibDCSwift",
      "targets" : [
        "LibDCSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "LibDCBridge",
      "targets" : [
        "LibDCBridge"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    },
    {
      "name" : "ClibdcVerGeneratorPlugin",
      "targets" : [
        "ClibdcVerGeneratorPlugin"
      ],
      "type" : {
        "plugin" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LibDCSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "LibDCSwiftTests",
      "path" : "Tests/LibDCSwiftTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/LibDCSwiftTests/Fixtures/Hardware",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/LibDCSwiftTests/Fixtures/hw_ostc_mk2_synthetic.dcrec",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/LibDCSwiftTests/Fixtures/logbook_entries_multi.bin",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/LibDCSwiftTests/Fixtures/reefnet_sensus_synthetic.dcrec",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/LibDCSwiftTests/Fixtures/shearwater_petrel_serial_synthetic.dcrec",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/LibDCSwiftTests/Fixtures/suunto_nautic_1787752091.golden.json",
          "rule" : {
            "copy" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/LibDCSwiftTests/Fixtures/suunto_nautic_1787752091.sbem",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "BLELinkStateTests.swift",
        "BluetoothSerialStreamTests.swift",
        "CableErrorTests.swift",
        "CustomStreamParityTests.swift",
        "DescriptorMatchingTests.swift",
        "DescriptorTransportLookupTests.swift",
        "DeviceCatalogTests.swift",
        "DiveComputerIdentityTests.swift",
        "DiveComputerSessionTests.swift",
        "DownloadOutcomeTests.swift",
        "EmptyReadTests.swift",
        "FingerprintIdentityTests.swift",
        "GenericParserSampleTests.swift",
        "GoldenParserTests.swift",
        "HIDCableSessionTests.swift",
        "HIDComputerFakes.swift",
        "HIDDiscoveryTests.swift",
        "HIDHardwareTests.swift",
        "HIDStreamTests.swift",
        "HIDTestSupport.swift",
        "LibDCLogSinkTests.swift",
        "NauticAutoSyncPolicyTests.swift",
        "OpenDeviceOnIOStreamTests.swift",
        "PelagicBLENameTests.swift",
        "RecordReplayTests.swift",
        "RejectedDiveTests.swift",
        "RetrievalCloseTests.swift",
        "RetrievalFlagTests.swift",
        "RetrievalSeamTests.swift",
        "SerialBuildConfigTests.swift",
        "SerialCableSessionTests.swift",
        "SerialCableTestSupport.swift",
        "SerialDiscoveryTests.swift",
        "SerialHardwareTests.swift",
        "SerialReplayTests.swift",
        "SessionClockTests.swift",
        "SessionIdentityTests.swift",
        "ShearwaterSerialReplayTests.swift",
        "StorageInjectionTests.swift",
        "StoredDeviceTransportTests.swift",
        "StreamTestSupport.swift",
        "SuuntoNauticParserTests.swift",
        "SuuntoNauticTransportTests.swift",
        "TankPressureTests.swift",
        "TapStreamTests.swift",
        "USBCableSessionTests.swift",
        "USBComputerFakes.swift",
        "USBDiscoveryTests.swift",
        "USBHardwareTests.swift",
        "USBReplayTests.swift",
        "USBStreamTests.swift",
        "USBTestSupport.swift"
      ],
      "target_dependencies" : [
        "LibDCSwift",
        "LibDCBridge",
        "Clibdivecomputer"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LibDCSwift",
      "module_type" : "SwiftTarget",
      "name" : "LibDCSwift",
      "path" : "Sources/LibDCSwift",
      "product_memberships" : [
        "LibDCSwift"
      ],
      "sources" : [
        "AutoSync/AutoSyncPolicy.swift",
        "AutoSync/CoreBluetoothNauticConnector.swift",
        "AutoSync/NauticAutoSync.swift",
        "AutoSync/NauticSyncLink.swift",
        "BLELinkState.swift",
        "BLEManager.swift",
        "Cable/CableDiscovery.swift",
        "Cable/CableEndpoint.swift",
        "Cable/CableError.swift",
        "Cable/HIDCableSession.swift",
        "Cable/HIDDeviceIO.swift",
        "Cable/HIDStream.swift",
        "Cable/IOKitCableDiscovery.swift",
        "Cable/SerialCableSession.swift",
        "Cable/USBCableSession.swift",
        "Cable/USBComputers.swift",
        "DiveLogRetriever.swift",
        "LibDCSwift.swift",
        "Logger.swift",
        "Models/DeviceConfiguration.swift",
        "Models/DeviceFingerprint.swift",
        "Models/DiveData.swift",
        "Models/SampleData.swift",
        "Models/StoredDevice.swift",
        "Parser/GenericParser.swift",
        "RetrievalCloseCoordinator.swift",
        "Session/DiveComputerSession.swift",
        "Streams/DCCustomStream.swift",
        "Streams/DCIOStreamBackend.swift",
        "Streams/DCRecording.swift",
        "Streams/ScriptedStream.swift",
        "Streams/TapStream.swift",
        "SuuntoNauticExplorer.swift",
        "SuuntoNauticResume.swift",
        "Transport/DCTransport.swift",
        "Transport/DeviceCatalog.swift",
        "Transport/DiveComputerIdentity.swift",
        "ViewModels/DiveDataViewModel.swift"
      ],
      "target_dependencies" : [
        "LibDCBridge",
        "Clibdivecomputer"
      ],
      "type" : "library"
    },
    {
      "c99name" : "LibDCBridge",
      "module_type" : "ClangTarget",
      "name" : "LibDCBridge",
      "path" : "Sources/LibDCBridge",
      "product_memberships" : [
        "LibDCSwift",
        "LibDCBridge"
      ],
      "sources" : [
        "src/BLEBridge.m",
        "src/USBBridge.m",
        "src/btserial.c",
        "src/cable_open.c",
        "src/configuredc.c",
        "src/transport_caps.c"
      ],
      "target_dependencies" : [
        "Clibdivecomputer"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Clibdivecomputer",
      "module_type" : "ClangTarget",
      "name" : "Clibdivecomputer",
      "path" : "libdivecomputer",
      "product_memberships" : [
        "LibDCSwift",
        "LibDCBridge"
      ],
      "sources" : [
        "src/aes.c",
        "src/array.c",
        "src/atomics_cobalt.c",
        "src/atomics_cobalt_parser.c",
        "src/ble.c",
        "src/bluetooth.c",
        "src/buffer.c",
        "src/checksum.c",
        "src/citizen_aqualand.c",
        "src/citizen_aqualand_parser.c",
        "src/cochran_commander.c",
        "src/cochran_commander_parser.c",
        "src/common.c",
        "src/context.c",
        "src/cressi_edy.c",
        "src/cressi_edy_parser.c",
        "src/cressi_goa.c",
        "src/cressi_goa_parser.c",
        "src/cressi_leonardo.c",
        "src/cressi_leonardo_parser.c",
        "src/custom.c",
        "src/datetime.c",
        "src/deepblu_cosmiq.c",
        "src/deepblu_cosmiq_parser.c",
        "src/deepsix_excursion.c",
        "src/deepsix_excursion_parser.c",
        "src/descriptor.c",
        "src/device.c",
        "src/diverite_nitekq.c",
        "src/diverite_nitekq_parser.c",
        "src/divesoft_freedom.c",
        "src/divesoft_freedom_parser.c",
        "src/divesystem_idive.c",
        "src/divesystem_idive_parser.c",
        "src/halcyon_symbios.c",
        "src/halcyon_symbios_parser.c",
        "src/hdlc.c",
        "src/heatshrink/heatshrink_decoder.c",
        "src/hw_ostc.c",
        "src/hw_ostc3.c",
        "src/hw_ostc_parser.c",
        "src/ihex.c",
        "src/iostream.c",
        "src/irda.c",
        "src/iterator.c",
        "src/liquivision_lynx.c",
        "src/liquivision_lynx_parser.c",
        "src/mares_common.c",
        "src/mares_darwin.c",
        "src/mares_darwin_parser.c",
        "src/mares_iconhd.c",
        "src/mares_iconhd_parser.c",
        "src/mares_nemo.c",
        "src/mares_nemo_parser.c",
        "src/mares_puck.c",
        "src/mclean_extreme.c",
        "src/mclean_extreme_parser.c",
        "src/oceanic_atom2.c",
        "src/oceanic_atom2_parser.c",
        "src/oceanic_common.c",
        "src/oceanic_veo250.c",
        "src/oceanic_veo250_parser.c",
        "src/oceanic_vtpro.c",
        "src/oceanic_vtpro_parser.c",
        "src/oceans_s1.c",
        "src/oceans_s1_common.c",
        "src/oceans_s1_parser.c",
        "src/packet.c",
        "src/parser.c",
        "src/pelagic_i330r.c",
        "src/platform.c",
        "src/rbstream.c",
        "src/reefnet_sensus.c",
        "src/reefnet_sensus_parser.c",
        "src/reefnet_sensuspro.c",
        "src/reefnet_sensuspro_parser.c",
        "src/reefnet_sensusultra.c",
        "src/reefnet_sensusultra_parser.c",
        "src/ringbuffer.c",
        "src/seac_screen.c",
        "src/seac_screen_common.c",
        "src/seac_screen_parser.c",
        "src/serial_posix.c",
        "src/shearwater_common.c",
        "src/shearwater_petrel.c",
        "src/shearwater_predator.c",
        "src/shearwater_predator_parser.c",
        "src/socket.c",
        "src/sporasub_sp2.c",
        "src/sporasub_sp2_parser.c",
        "src/suunto_common.c",
        "src/suunto_common2.c",
        "src/suunto_d9.c",
        "src/suunto_d9_parser.c",
        "src/suunto_eon.c",
        "src/suunto_eon_parser.c",
        "src/suunto_eonsteel.c",
        "src/suunto_eonsteel_parser.c",
        "src/suunto_nautic.c",
        "src/suunto_nautic_parser.c",
        "src/suunto_solution.c",
        "src/suunto_solution_parser.c",
        "src/suunto_vyper.c",
        "src/suunto_vyper2.c",
        "src/suunto_vyper_parser.c",
        "src/tecdiving_divecomputereu.c",
        "src/tecdiving_divecomputereu_parser.c",
        "src/timer.c",
        "src/usb.c",
        "src/usbhid.c",
        "src/uwatec_aladin.c",
        "src/uwatec_memomouse.c",
        "src/uwatec_memomouse_parser.c",
        "src/uwatec_smart.c",
        "src/uwatec_smart_parser.c",
        "src/version.c",
        "src/zeagle_n2ition3.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ClibdcVerGeneratorPlugin",
      "module_type" : "PluginTarget",
      "name" : "ClibdcVerGeneratorPlugin",
      "path" : "Plugins/ClibdcVerGeneratorPlugin",
      "plugin_capability" : {
        "intent" : {
          "description" : "Generate libdivecomputer version.h",
          "type" : "custom",
          "verb" : "libdc-version-header"
        },
        "permissions" : [
          {
            "network_scope" : {
              "none" : {
              }
            },
            "reason" : "The plugin generates the libdivecomputer version.h file",
            "type" : "writeToPackageDirectory"
          }
        ],
        "type" : "command"
      },
      "product_memberships" : [
        "ClibdcVerGeneratorPlugin"
      ],
      "sources" : [
        "ClibdcVerGeneratorPlugin.swift"
      ],
      "type" : "plugin"
    }
  ],
  "tools_version" : "5.10"
}
Done.