Fix arm build and c_long unit test casts
- Add #[allow(dead_code)] on CellSpan::set_row in encoder::rec_view,
which is only called from simd::x86_64 and simd::aarch64 and tripped
#![deny(dead_code)] on scalar-only targets such as 32-bit ARM.
- Cast CM_RESULT_SUCCESS to c_long instead of i64 in c_api unit tests so
--all-targets builds cleanly on ILP32 and LLP64 platforms.
Bug: 527969915
Change-Id: I65a9d8b1fe3d3d28ae9bb3e58e9088bd0a6c6cb2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/third_party/openh264rs/+/8828099
Reviewed-by: Frank Liberato <liberato@google.com>
Reviewed-by: Eugene Zemtsov <ezemtsov@google.com>
2 files changed