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

Commit f30434dd authored by S Vasudev Prasad's avatar S Vasudev Prasad
Browse files

AUtils.h: Removed unused variable macro usage

Note: On host toolchains, __unused doesnt seem to be present. Hence
updated all instances to use __attribute__((unused)) instead.

Test: Build libstagefright_foundation on Android
Bug: 151789258

Change-Id: Ic749568c69d7c9365c5248b44a5b5036100fdcfa
parent ca11c8b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ inline static const T &max(const T &a, const T &b) {

template<class T>
void ENSURE_UNSIGNED_TYPE() {
    T TYPE_MUST_BE_UNSIGNED[(T)-1 < 0 ? -1 : 0] __unused;
    T TYPE_MUST_BE_UNSIGNED[(T)-1 < 0 ? -1 : 0] __attribute__((unused));
}

// needle is in range [hayStart, hayStart + haySize)