Disable warning from qt5 and

This commit is contained in:
Miodrag Milanovic 2018-07-05 10:33:11 +02:00
parent 2fe13e7a07
commit 2f5b5369ba
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ set(CMAKE_CXX_STANDARD 11)
if (MSVC)
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /D_DEBUG /W4 /wd4100 /wd4244 /wd4125 /wd4800 /wd4456 /wd4458 /wd4305 /wd4459 /wd4121 /wd4996")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /W4 /wd4100 /wd4244 /wd4125 /wd4800 /wd4456 /wd4458 /wd4305 /wd4459 /wd4121 /wd4996")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /W4 /wd4100 /wd4244 /wd4125 /wd4800 /wd4456 /wd4458 /wd4305 /wd4459 /wd4121 /wd4996 /wd4127")
else()
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -fPIC -ggdb")
set(CMAKE_CXX_FLAGS_RELEASE "-Wall -fPIC -O3 -g")

View File

@ -360,8 +360,8 @@ void FPGAViewWidget::paintGL()
for (auto &el : ctx_->getBelGraphics(bel))
drawElement(bels, el);
}
lineShader_.draw(bels, matrix);
}
lineShader_.draw(bels, matrix);
// Draw Frame Graphics.
auto frames = LineShaderData(0.02f, QColor("#0066ba"));
@ -369,8 +369,8 @@ void FPGAViewWidget::paintGL()
for (auto &el : ctx_->getFrameGraphics()) {
drawElement(frames, el);
}
lineShader_.draw(frames, matrix);
}
lineShader_.draw(frames, matrix);
}
void FPGAViewWidget::resizeGL(int width, int height) {}