mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-25 10:45:59 -05:00
Resolve unused parameter warnings
This commit is contained in:
@@ -84,8 +84,8 @@ GetTransformSettingValue(obs_scene_item *source,
|
||||
}
|
||||
|
||||
template<class T>
|
||||
static void logConversionError(T exception, const char *func,
|
||||
const char *target, const char *value)
|
||||
static void logConversionError(T, const char *func, const char *target,
|
||||
const char *value)
|
||||
{
|
||||
if (std::is_same<T, std::invalid_argument>::value) {
|
||||
blog(LOG_WARNING, "%s invalid %s value (%s)", func, target,
|
||||
|
||||
@@ -285,7 +285,7 @@ setTempVarsHelper(obs_data_t *data,
|
||||
setTempVarsHelper(jsonStr, setVar);
|
||||
}
|
||||
|
||||
bool MacroConditionTwitch::CheckChannelGenericEvents(TwitchToken &token)
|
||||
bool MacroConditionTwitch::CheckChannelGenericEvents()
|
||||
{
|
||||
if (!_eventBuffer) {
|
||||
return false;
|
||||
@@ -315,7 +315,7 @@ bool MacroConditionTwitch::CheckChannelGenericEvents(TwitchToken &token)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MacroConditionTwitch::CheckChannelLiveEvents(TwitchToken &token)
|
||||
bool MacroConditionTwitch::CheckChannelLiveEvents()
|
||||
{
|
||||
if (!_eventBuffer) {
|
||||
return false;
|
||||
@@ -541,13 +541,13 @@ bool MacroConditionTwitch::CheckCondition()
|
||||
case Condition::USER_UNBAN_EVENT:
|
||||
case Condition::USER_MODERATOR_ADDITION_EVENT:
|
||||
case Condition::USER_MODERATOR_DELETION_EVENT:
|
||||
return CheckChannelGenericEvents(*token);
|
||||
return CheckChannelGenericEvents();
|
||||
case Condition::STREAM_ONLINE_LIVE_EVENT:
|
||||
case Condition::STREAM_ONLINE_PLAYLIST_EVENT:
|
||||
case Condition::STREAM_ONLINE_WATCHPARTY_EVENT:
|
||||
case Condition::STREAM_ONLINE_PREMIERE_EVENT:
|
||||
case Condition::STREAM_ONLINE_RERUN_EVENT:
|
||||
return CheckChannelLiveEvents(*token);
|
||||
return CheckChannelLiveEvents();
|
||||
case Condition::LIVE_POLLING: {
|
||||
auto info = _channel.GetLiveInfo(*token);
|
||||
if (!info) {
|
||||
|
||||
@@ -107,8 +107,8 @@ public:
|
||||
bool _clearBufferOnMatch = false;
|
||||
|
||||
private:
|
||||
bool CheckChannelGenericEvents(TwitchToken &token);
|
||||
bool CheckChannelLiveEvents(TwitchToken &token);
|
||||
bool CheckChannelGenericEvents();
|
||||
bool CheckChannelLiveEvents();
|
||||
bool CheckChatMessages(TwitchToken &token);
|
||||
|
||||
void RegisterEventSubscription();
|
||||
|
||||
@@ -103,7 +103,7 @@ static std::vector<USBDeviceInfo> pollUSBDevices()
|
||||
return result;
|
||||
}
|
||||
|
||||
static int hotplugCallback(struct libusb_context *ctx,
|
||||
static int hotplugCallback(struct libusb_context *,
|
||||
struct libusb_device *device,
|
||||
libusb_hotplug_event event, void *user_data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user