The /analyze builder complains thusly:
device\bluetooth\bluetooth_remote_gatt_characteristic_win.cc(333) : warning C6221: Implicit cast between semantically different integer types: comparing HRESULT to an integer. Consider using SUCCEEDED or FAILED macros instead.
This is because ERROR_INVALID_USER_BUFFER is a system error code and comparing it to an HRESULT (through a switch statement) is not meaningful. The code that does this was introduced in:
https://codereview.chromium.org/1739383002/diff/340001/device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc
Comment 1 by brucedaw...@chromium.org
, Mar 8 2016