Fix warnings

This commit is contained in:
WarmUpTill
2026-05-23 21:27:36 +02:00
parent 748744d1b7
commit b1cc15386f
4 changed files with 7 additions and 8 deletions

View File

@@ -129,12 +129,11 @@ static bool checkCondition(const std::shared_ptr<MacroCondition> &condition)
const auto timeSpent = endTime - startTime;
if (timeSpent >= perfLogThreshold) {
const long int ms =
std::chrono::duration_cast<std::chrono::milliseconds>(
timeSpent)
.count();
blog(LOG_WARNING,
"spent %ld ms in %s condition check of macro '%s'!", ms,
"spent %lld ms in %s condition check of macro '%s'!",
(long long)std::chrono::duration_cast<
std::chrono::milliseconds>(timeSpent)
.count(),
condition->GetId().c_str(),
condition->GetMacro()->Name().c_str());
}

View File

@@ -46,7 +46,7 @@ public:
} // namespace
static void handleShutdown(enum obs_frontend_event event, void *private_data)
static void handleShutdown(enum obs_frontend_event event, void *)
{
if (event != OBS_FRONTEND_EVENT_EXIT) {
return;

View File

@@ -259,7 +259,7 @@ void MacroActionSourceInteractionEdit::AcceptRecorded(
_stepList->SetSteps(_entryData->_steps);
}
void MacroActionSourceInteractionEdit::showEvent(QShowEvent *event)
void MacroActionSourceInteractionEdit::showEvent(QShowEvent *)
{
const QSignalBlocker b(this);
UpdateEntryData();

View File

@@ -710,7 +710,7 @@ void MacroConditionDateEdit::UpdateEntryData()
SetWidgetStatus();
}
void MacroConditionDateEdit::showEvent(QShowEvent *event)
void MacroConditionDateEdit::showEvent(QShowEvent *)
{
const QSignalBlocker b(this);
UpdateEntryData();