Skip to content

Commit

Permalink
MythDRMDevice: Squash a shadow warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Jan 22, 2021
1 parent d29e301 commit ffd2e72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythui/platforms/mythdrmdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ void MythDRMDevice::SetupDRM(const MythCommandLineParser& CmdLine)
setenv(s_kmsPlaneCRTCS, qPrintable(crtcplane), 1);

// Set the zpos if supported
if (auto zpos = MythDRMProperty::GetProperty("zpos", guiplane->m_properties); zpos.get())
if (auto zposp = MythDRMProperty::GetProperty("zpos", guiplane->m_properties); zposp.get())
{
if (auto range = dynamic_cast<MythDRMRangeProperty*>(zpos.get()); range)
if (auto range = dynamic_cast<MythDRMRangeProperty*>(zposp.get()); range)
{
auto val = QString::number(std::min(range->m_min + 1, range->m_max));
LOG(VB_GENERAL, LOG_INFO, QString("Exporting '%1=%2'").arg(s_kmsPlaneZpos).arg(val));
Expand Down

0 comments on commit ffd2e72

Please sign in to comment.