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

Commit 46a894dc authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix the Wenum-constexpr-conversion error" into main

parents ef703eef 7c275a89
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -25,7 +25,8 @@ using namespace android;
using namespace android::audioflinger;
using namespace android::audioflinger;


namespace {
namespace {

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wenum-constexpr-conversion"
TEST(MediaSyncEventTests, Basic) {
TEST(MediaSyncEventTests, Basic) {
    struct Cookie : public RefBase {};
    struct Cookie : public RefBase {};


@@ -66,5 +67,5 @@ TEST(MediaSyncEventTests, Basic) {
    syncEvent->cancel();
    syncEvent->cancel();
    ASSERT_TRUE(syncEvent->isCancelled());
    ASSERT_TRUE(syncEvent->isCancelled());
}
}

#pragma clang diagnostic pop
} // namespace
} // namespace
+3 −1
Original line number Original line Diff line number Diff line
@@ -26,6 +26,8 @@ using namespace android::audioflinger;


namespace {
namespace {


#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wenum-constexpr-conversion"
TEST(SynchronizedRecordStateTests, Basic) {
TEST(SynchronizedRecordStateTests, Basic) {
    struct Cookie : public RefBase {};
    struct Cookie : public RefBase {};


@@ -73,5 +75,5 @@ TEST(SynchronizedRecordStateTests, Basic) {
    ASSERT_FALSE(triggered);
    ASSERT_FALSE(triggered);
    ASSERT_TRUE(syncEvent->isCancelled());
    ASSERT_TRUE(syncEvent->isCancelled());
}
}

#pragma clang diagnostic pop
}
}