Android Q Preview 2.5 (QPP2.190228.023)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCXK4uGAAKCRDorT+BmrEO
eKCAAJ4uRDBfO3i9l70AzBnaBEhLGjVqFQCfa81Ofjpx8xAJENDy5YUwSNpDllQ=
=tU1M
-----END PGP SIGNATURE-----
Mark operator c2_cntr64_t as constexpr

Upcoming compiler update emits warning:
hardware/google/av/codec2/tests/C2_test.cpp:142:19: error: static_assert expression is not an integral constant expression
    static_assert(c2_cntr32_t(1) == c2_cntr32_t(c2_cntr64_t(0x100000001ul)), "1 == 1");
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hardware/google/av/codec2/tests/C2_test.cpp:142:49: note: non-constexpr function 'operator c2_cntr_t<unsigned int, void>' cannot be used in a constant expression
    static_assert(c2_cntr32_t(1) == c2_cntr32_t(c2_cntr64_t(0x100000001ul)), "1 == 1");
                                                ^
hardware/google/av/codec2/include/C2.h:292:12: note: declared here
    inline operator c2_cntr_t<U>() {
           ^

Mark the method constexpr to fix the error.

Test: m checkbuild
Bug: 126457671
Change-Id: I97d1e420f818f8ad928d25ec242cf71ce2c33054
1 file changed
tree: 91c687d1da34c716ff12de2d8781fcea7d9a8256
  1. Android.bp
  2. OWNERS
  3. codec2/
  4. hooks/
  5. media/