Skip to content

Commit

Permalink
Use the warning supression instead of the variable is not used macro
Browse files Browse the repository at this point in the history
  • Loading branch information
VeithMetro committed Nov 20, 2024
1 parent 7aa41d6 commit 74a7e40
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions OpenCDMi/FrameworkRPC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,13 @@ namespace Plugin {

return (Core::infinite);
}

private:
CDMi::IMediaKeySession* _mediaKeys;
VARIABLE_IS_NOT_USED CDMi::IMediaKeySessionExt* _mediaKeysExt;
VARIABLE_IS_NOT_USED uint8_t* _sessionKey;
VARIABLE_IS_NOT_USED uint32_t _sessionKeyLength;
PUSH_WARNING(DISABLE_WARNING_UNUSED_VARIABLES)
CDMi::IMediaKeySessionExt* _mediaKeysExt;
uint8_t* _sessionKey;
uint32_t _sessionKeyLength;
POP_WARNING()
};

// IMediaKeys defines the MediaKeys interface.
Expand Down Expand Up @@ -748,7 +749,9 @@ POP_WARNING()
private:
AccessorOCDM& _parent;
mutable Core::CriticalSection _adminLock;
VARIABLE_IS_NOT_USED mutable uint32_t _refCount;
PUSH_WARNING(DISABLE_WARNING_UNUSED_VARIABLES)
mutable uint32_t _refCount;
POP_WARNING()
std::string _keySystem;
std::string _sessionId;
CDMi::IMediaKeySession* _mediaKeySession;
Expand Down

0 comments on commit 74a7e40

Please sign in to comment.