Resolve unused parameter warnings

This commit is contained in:
WarmUpTill
2024-08-15 00:28:29 +02:00
committed by WarmUpTill
parent ee72bb192c
commit 5bb10a4aef
24 changed files with 30 additions and 32 deletions

View File

@@ -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,

View File

@@ -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) {

View File

@@ -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();

View File

@@ -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)
{