mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-16 18:47:21 +00:00
gcc allows implicit conversion between enum type (even when `-Wall` is
specified). clang does not allow such conversions with `-Wall`. It
reports warnings like this one:
error: implicit conversion from enumeration type 'os_error_t' (aka 'enum os_error') to different enumeration type 'ble_npl_error_t' (aka 'enum ble_npl_error')
This commit makes these conversions explicit via casts. This allows the
unit test code to be built with clang using Mynewt's default build
flags.