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

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
+1 −0
Original line number Original line Diff line number Diff line
@@ -61,6 +61,7 @@ tidy_errors = [
    "-bugprone-unhandled-self-assignment", // found in TimeMachine.h
    "-bugprone-unhandled-self-assignment", // found in TimeMachine.h
    "-bugprone-suspicious-string-compare", // found in TimeMachine.h
    "-bugprone-suspicious-string-compare", // found in TimeMachine.h
    "-cert-oop54-cpp", // found in TransactionLog.h
    "-cert-oop54-cpp", // found in TransactionLog.h
    "-bugprone-narrowing-conversions", // b/182410845
]
]


cc_defaults {
cc_defaults {