History

quiet warning on linux

Seth Alves committed 11 years ago

Commit 9ec72e41 parent cdeda671 file · +1 −2Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+1−2
@@ -3916,8 +3916,8 @@ void Application::takeSnapshot() { · 3915 unmodified lines
39163916 }
39173917
39183918 void Application::setVSyncEnabled() {
3919− bool vsyncOn = Menu::getInstance()->isOptionChecked(MenuOption::RenderTargetFramerateVSyncOn);
39203919 #if defined(Q_OS_WIN)
3920+ bool vsyncOn = Menu::getInstance()->isOptionChecked(MenuOption::RenderTargetFramerateVSyncOn);
39213921 if (wglewGetExtension("WGL_EXT_swap_control")) {
39223922 wglSwapIntervalEXT(vsyncOn);
39233923 int swapInterval = wglGetSwapIntervalEXT();
@@ -3940,7 +3940,6 @@ void Application::setVSyncEnabled() { · 16 unmodified lines
39403940 #else
39413941 qDebug("V-Sync is FORCED ON on this system\n");
39423942 #endif
3943− vsyncOn = true; // Turns off unused variable warning
39443943 }
39453944
39463945 bool Application::isVSyncOn() const {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t