Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d11dda84 authored by Pirama Arumuga Nainar's avatar Pirama Arumuga Nainar
Browse files

[clang-tidy] Disable bugprone-narrowing-conversions for mediametrics

Bug: http://b/181927912
Bug: http://b/182410845

This warning re-appeared:

/mnt/disks/build-disk/src/googleplex-android/master/frameworks/av/services/mediametrics/statsd_drm.cpp:139:33:
error: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'std::__wrap_iter<unsigned char *>::difference_type' (aka'long') is implementation-defined [bugprone-narrowing-conversions,-warnings-as-errors]
        buf.erase(buf.begin() + size, buf.end());

Let's disable this and fix the warning after the compiler update lands.

Test: m statsd_drm.tidy
Change-Id: Ibabf5b9caaa77d201543308724c8444d98c5dde1
parent 0a2021b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment