Skip to content

Commit

Permalink
Fix "declaration shadows a global declaration" warning.
Browse files Browse the repository at this point in the history
The variable name "Display" conflicts with a typedef in
/usr/include/X11/Xlib.h.
  • Loading branch information
linuxdude42 committed Jul 5, 2020
1 parent 48ee55b commit 5617763
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions mythtv/libs/libmythui/mythdisplay.cpp
Expand Up @@ -1047,7 +1047,7 @@ void MythDisplay::DebugModes(void) const
* \note This function must be called before Qt/QPA is initialised i.e. before
* any call to QApplication.
*/
void MythDisplay::ConfigureQtGUI(int SwapInterval, QString Display)
void MythDisplay::ConfigureQtGUI(int SwapInterval, QString _Display)
{
// Set the default surface format. Explicitly required on some platforms.
QSurfaceFormat format;
Expand Down Expand Up @@ -1102,8 +1102,8 @@ void MythDisplay::ConfigureQtGUI(int SwapInterval, QString Display)
QApplication::setAttribute(Qt::AA_DisableHighDpiScaling);

#ifdef USING_X11
MythXDisplay::SetQtX11Display(Display);
MythXDisplay::SetQtX11Display(_Display);
#else
(void)Display;
(void)_Display;
#endif
}
4 changes: 2 additions & 2 deletions mythtv/libs/libmythui/platforms/mythxdisplay.cpp
Expand Up @@ -61,9 +61,9 @@ MythXDisplay* MythXDisplay::OpenMythXDisplay(bool Warn /*= true*/)
return nullptr;
}

void MythXDisplay::SetQtX11Display(const QString &Display)
void MythXDisplay::SetQtX11Display(const QString &_Display)
{
s_QtX11Display = Display;
s_QtX11Display = _Display;
}

MythXDisplay::~MythXDisplay()
Expand Down

0 comments on commit 5617763

Please sign in to comment.