diff options
author | Ralf Nolden <nolden@kde.org> | 2016-05-24 19:22:29 +0200 |
---|---|---|
committer | Ralf Nolden <nolden@kde.org> | 2016-05-25 11:45:10 +0000 |
commit | 5c16b73243f56cc61bf199a8505a86f011405e98 (patch) | |
tree | b156d68417e90b010d1df613257ad0b04b513712 /src/platformsupport/eglconvenience/qeglconvenience.cpp | |
parent | b057fdbb12341da9e972bcd16c5c4f1b751cac01 (diff) |
Compile Fix: unused variable in q_refreshRateFromFb() on non-linux
To fix a compile warning under non-Linux systems, declare
framebufferDevice in q_refreshRateFromFb() as Q_UNUSED like in the other
functions.
Change-Id: I31a4e788f07d27d3cff7f6ea7fd82813a7acc7d9
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/platformsupport/eglconvenience/qeglconvenience.cpp')
-rw-r--r-- | src/platformsupport/eglconvenience/qeglconvenience.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/platformsupport/eglconvenience/qeglconvenience.cpp b/src/platformsupport/eglconvenience/qeglconvenience.cpp index 922455c96f..be700dce01 100644 --- a/src/platformsupport/eglconvenience/qeglconvenience.cpp +++ b/src/platformsupport/eglconvenience/qeglconvenience.cpp @@ -578,6 +578,10 @@ int q_screenDepthFromFb(int framebufferDevice) qreal q_refreshRateFromFb(int framebufferDevice) { +#ifndef Q_OS_LINUX + Q_UNUSED(framebufferDevice) +#endif + static qreal rate = 0; #ifdef Q_OS_LINUX |