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

Commit 8b18054a authored by Yi Kong's avatar Yi Kong Committed by Automerger Merge Worker
Browse files

Merge "Suppress ordered-compare-function-pointers warning" am: 9117f884 am:...

Merge "Suppress ordered-compare-function-pointers warning" am: 9117f884 am: 751c59d2 am: 410ba11c

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1813695

Change-Id: Ic01faf41231b7e1f5a081bb8aed5fad847cc14e0
parents 60ef1e16 410ba11c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -139,6 +139,8 @@ class CameraManagerGlobal final : public RefBase {
            return !(*this == other);
        }
        bool operator < (const Callback& other) const {
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wordered-compare-function-pointers"
            if (*this == other) return false;
            if (mContext != other.mContext) return mContext < other.mContext;
            if (mPhysicalCamAvailable != other.mPhysicalCamAvailable) {
@@ -152,6 +154,7 @@ class CameraManagerGlobal final : public RefBase {
            }
            if (mAvailable != other.mAvailable) return mAvailable < other.mAvailable;
            return mUnavailable < other.mUnavailable;
#pragma GCC diagnostic pop
        }
        bool operator > (const Callback& other) const {
            return (*this != other && !(*this < other));
+3 −0
Original line number Diff line number Diff line
@@ -136,6 +136,8 @@ class CameraManagerGlobal final : public RefBase {
            return !(*this == other);
        }
        bool operator < (const Callback& other) const {
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wordered-compare-function-pointers"
            if (*this == other) return false;
            if (mContext != other.mContext) return mContext < other.mContext;
            if (mAvailable != other.mAvailable) return mAvailable < other.mAvailable;
@@ -146,6 +148,7 @@ class CameraManagerGlobal final : public RefBase {
            if (mPhysicalCamUnavailable != other.mPhysicalCamUnavailable)
                    return mPhysicalCamUnavailable < other.mPhysicalCamUnavailable;
            return mUnavailable < other.mUnavailable;
#pragma GCC diagnostic pop
        }
        bool operator > (const Callback& other) const {
            return (*this != other && !(*this < other));