Bug 303313 - Make KWin compile with C++11
Summary: Make KWin compile with C++11
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 4.8.90
Platform: unspecified Linux
: NOR task
Target Milestone: 4.11
Assignee: KWin default assignee
URL:
Keywords:
Depends on: 303314
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-10 15:48 UTC by Martin Flöser
Modified: 2013-02-27 11:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Flöser 2012-07-10 15:48:00 UTC
At the moment KWin cannot be compiled for C++11. The following C++11 specific warnings are reported by gcc 4.7:

/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwinanimationeffect.cpp: In member function ‘void KWin::AnimationEffect::animate(KWin::EffectWindow*, KWin::AnimationEffect::Attribute, uint, int, KWin::FPx2, QEasingCurve, int, KWin::FPx2)’:
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwinanimationeffect.cpp:78:17: warning: narrowing conversion of ‘KWin::AnimationEffect::metaData((KWin::AnimationEffect::MetaType)2u, meta)’ from ‘int’ to ‘const bool’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwinanimationeffect.cpp:78:17: warning: narrowing conversion of ‘KWin::AnimationEffect::metaData((KWin::AnimationEffect::MetaType)3u, meta)’ from ‘int’ to ‘const bool’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwinanimationeffect.cpp:83:17: warning: narrowing conversion of ‘KWin::AnimationEffect::metaData((KWin::AnimationEffect::MetaType)4u, meta)’ from ‘int’ to ‘const bool’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwinanimationeffect.cpp:83:17: warning: narrowing conversion of ‘KWin::AnimationEffect::metaData((KWin::AnimationEffect::MetaType)5u, meta)’ from ‘int’ to ‘const bool’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwinanimationeffect.cpp:107:13: warning: narrowing conversion of ‘KWin::AnimationEffect::metaData((KWin::AnimationEffect::MetaType)2u, meta)’ from ‘int’ to ‘const bool’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwinanimationeffect.cpp:107:13: warning: narrowing conversion of ‘KWin::AnimationEffect::metaData((KWin::AnimationEffect::MetaType)3u, meta)’ from ‘int’ to ‘const bool’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwinanimationeffect.cpp:116:13: warning: narrowing conversion of ‘KWin::AnimationEffect::metaData((KWin::AnimationEffect::MetaType)4u, meta)’ from ‘int’ to ‘const bool’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwinanimationeffect.cpp:116:13: warning: narrowing conversion of ‘KWin::AnimationEffect::metaData((KWin::AnimationEffect::MetaType)5u, meta)’ from ‘int’ to ‘const bool’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwinanimationeffect.cpp:128:13: warning: narrowing conversion of ‘KWin::AnimationEffect::metaData((KWin::AnimationEffect::MetaType)2u, meta)’ from ‘int’ to ‘const bool’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwinanimationeffect.cpp:128:13: warning: narrowing conversion of ‘KWin::AnimationEffect::metaData((KWin::AnimationEffect::MetaType)3u, meta)’ from ‘int’ to ‘const bool’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwinanimationeffect.cpp:136:13: warning: narrowing conversion of ‘KWin::AnimationEffect::metaData((KWin::AnimationEffect::MetaType)4u, meta)’ from ‘int’ to ‘const bool’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwinanimationeffect.cpp:136:13: warning: narrowing conversion of ‘KWin::AnimationEffect::metaData((KWin::AnimationEffect::MetaType)5u, meta)’ from ‘int’ to ‘const bool’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwinanimationeffect.cpp:147:13: warning: narrowing conversion of ‘KWin::AnimationEffect::metaData((KWin::AnimationEffect::MetaType)2u, meta)’ from ‘int’ to ‘const bool’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwinanimationeffect.cpp:147:13: warning: narrowing conversion of ‘KWin::AnimationEffect::metaData((KWin::AnimationEffect::MetaType)3u, meta)’ from ‘int’ to ‘const bool’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwinanimationeffect.cpp:155:13: warning: narrowing conversion of ‘KWin::AnimationEffect::metaData((KWin::AnimationEffect::MetaType)4u, meta)’ from ‘int’ to ‘const bool’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwinanimationeffect.cpp:155:13: warning: narrowing conversion of ‘KWin::AnimationEffect::metaData((KWin::AnimationEffect::MetaType)5u, meta)’ from ‘int’ to ‘const bool’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp: In member function ‘void KWin::GLTexture::render(QRegion, const QRect&, bool)’:
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp:312:17: warning: narrowing conversion of ‘r.QRect::x()’ from ‘int’ to ‘const float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp:312:24: warning: narrowing conversion of ‘r.QRect::y()’ from ‘int’ to ‘const float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp:313:17: warning: narrowing conversion of ‘r.QRect::x()’ from ‘int’ to ‘const float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp:316:9: warning: narrowing conversion of ‘(r.QRect::y() + (& rect)->QRect::height())’ from ‘int’ to ‘const float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp:316:9: warning: narrowing conversion of ‘(r.QRect::x() + (& rect)->QRect::width())’ from ‘int’ to ‘const float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp:314:39: warning: narrowing conversion of ‘r.QRect::y()’ from ‘int’ to ‘const float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp:316:9: warning: narrowing conversion of ‘(r.QRect::x() + (& rect)->QRect::width())’ from ‘int’ to ‘const float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp:316:9: warning: narrowing conversion of ‘(r.QRect::y() + (& rect)->QRect::height())’ from ‘int’ to ‘const float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp: In member function ‘void KWin::GLTexture::render(QRegion, const QRect&, bool)’:
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp:312:17: warning: narrowing conversion of ‘r.QRect::x()’ from ‘int’ to ‘const float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp:312:24: warning: narrowing conversion of ‘r.QRect::y()’ from ‘int’ to ‘const float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp:313:17: warning: narrowing conversion of ‘r.QRect::x()’ from ‘int’ to ‘const float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp:316:9: warning: narrowing conversion of ‘(r.QRect::y() + (& rect)->QRect::height())’ from ‘int’ to ‘const float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp:316:9: warning: narrowing conversion of ‘(r.QRect::x() + (& rect)->QRect::width())’ from ‘int’ to ‘const float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp:314:39: warning: narrowing conversion of ‘r.QRect::y()’ from ‘int’ to ‘const float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp:316:9: warning: narrowing conversion of ‘(r.QRect::x() + (& rect)->QRect::width())’ from ‘int’ to ‘const float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/libkwineffects/kwingltexture.cpp:316:9: warning: narrowing conversion of ‘(r.QRect::y() + (& rect)->QRect::height())’ from ‘int’ to ‘const float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/client.cpp: In member function ‘void KWin::Client::setMask(const QRegion&, int)’:
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/client.cpp:906:53: warning: narrowing conversion of ‘KWin::Client::clientSize().QSize::width()’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/client.cpp:906:76: warning: narrowing conversion of ‘KWin::Client::clientSize().QSize::height()’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/coverswitch/coverswitch.cpp:275:51: warning: narrowing conversion of ‘((KWin::CoverSwitchEffect*)this)->KWin::CoverSwitchEffect::area.QRect::height()’ from ‘int’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/coverswitch/coverswitch.cpp:276:50: warning: narrowing conversion of ‘((KWin::CoverSwitchEffect*)this)->KWin::CoverSwitchEffect::area.QRect::height()’ from ‘int’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/coverswitch/coverswitch.cpp:277:72: warning: narrowing conversion of ‘((KWin::CoverSwitchEffect*)this)->KWin::CoverSwitchEffect::area.QRect::height()’ from ‘int’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/coverswitch/coverswitch.cpp:278:73: warning: narrowing conversion of ‘((KWin::CoverSwitchEffect*)this)->KWin::CoverSwitchEffect::area.QRect::height()’ from ‘int’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/cube/cube.cpp: In member function ‘virtual void KWin::CubeEffect::paintScreen(int, QRegion, KWin::ScreenPaintData&)’:
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/cube/cube.cpp:489:51: warning: narrowing conversion of ‘rect.QRect::height()’ from ‘int’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/cube/cube.cpp:490:50: warning: narrowing conversion of ‘rect.QRect::height()’ from ‘int’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/cube/cube.cpp:491:62: warning: narrowing conversion of ‘rect.QRect::height()’ from ‘int’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/cube/cube.cpp:492:63: warning: narrowing conversion of ‘rect.QRect::height()’ from ‘int’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/cube/cube.cpp: In member function ‘void KWin::CubeEffect::paintCap(bool, float)’:
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/cube/cube.cpp:831:46: warning: narrowing conversion of ‘((KWin::CubeEffect*)this)->KWin::CubeEffect::capColor.QColor::redF()’ from ‘qreal {aka double}’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/cube/cube.cpp:831:65: warning: narrowing conversion of ‘((KWin::CubeEffect*)this)->KWin::CubeEffect::capColor.QColor::greenF()’ from ‘qreal {aka double}’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/cube/cube.cpp:831:83: warning: narrowing conversion of ‘((KWin::CubeEffect*)this)->KWin::CubeEffect::capColor.QColor::blueF()’ from ‘qreal {aka double}’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/overlaywindow.cpp: In member function ‘void KWin::OverlayWindow::destroy()’:
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/overlaywindow.cpp:145:43: warning: narrowing conversion of ‘KWin::displayWidth()’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/overlaywindow.cpp:145:60: warning: narrowing conversion of ‘KWin::displayHeight()’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/magnifier/magnifier.cpp: In member function ‘virtual void KWin::MagnifierEffect::paintScreen(int, QRegion, KWin::ScreenPaintData&)’:
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/magnifier/magnifier.cpp:210:105: warning: narrowing conversion of ‘(area.QRect::x() + 5)’ from ‘int’ to ‘short int’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/magnifier/magnifier.cpp:207:74: warning: narrowing conversion of ‘area.QRect::y()’ from ‘int’ to ‘short int’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/magnifier/magnifier.cpp:210:105: warning: narrowing conversion of ‘(area.QRect::width() + -5)’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/magnifier/magnifier.cpp:210:105: warning: narrowing conversion of ‘(area.QRect::right() + -5)’ from ‘int’ to ‘short int’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/magnifier/magnifier.cpp:210:105: warning: narrowing conversion of ‘(area.QRect::y() + 5)’ from ‘int’ to ‘short int’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/magnifier/magnifier.cpp:210:105: warning: narrowing conversion of ‘(area.QRect::height() + -5)’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/magnifier/magnifier.cpp:209:52: warning: narrowing conversion of ‘area.QRect::x()’ from ‘int’ to ‘short int’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/magnifier/magnifier.cpp:210:105: warning: narrowing conversion of ‘(area.QRect::bottom() + -5)’ from ‘int’ to ‘short int’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/magnifier/magnifier.cpp:210:105: warning: narrowing conversion of ‘(area.QRect::width() + -5)’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/magnifier/magnifier.cpp:210:52: warning: narrowing conversion of ‘area.QRect::x()’ from ‘int’ to ‘short int’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/magnifier/magnifier.cpp:210:62: warning: narrowing conversion of ‘area.QRect::y()’ from ‘int’ to ‘short int’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/magnifier/magnifier.cpp:210:105: warning: narrowing conversion of ‘(area.QRect::height() + -5)’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/startupfeedback/startupfeedback.cpp: In member function ‘virtual void KWin::StartupFeedbackEffect::paintScreen(int, QRegion, KWin::ScreenPaintData&)’:
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/startupfeedback/startupfeedback.cpp:201:55: warning: narrowing conversion of ‘(& blinkingColor)->QColor::redF()’ from ‘qreal {aka double}’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/startupfeedback/startupfeedback.cpp:201:79: warning: narrowing conversion of ‘(& blinkingColor)->QColor::greenF()’ from ‘qreal {aka double}’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/startupfeedback/startupfeedback.cpp:201:102: warning: narrowing conversion of ‘(& blinkingColor)->QColor::blueF()’ from ‘qreal {aka double}’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/wobblywindows/wobblywindows.cpp: In member function ‘void KWin::WobblyWindowsEffect::startMovedResized(KWin::EffectWindow*)’:
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/wobblywindows/wobblywindows.cpp:435:34: warning: narrowing conversion of ‘KWin::Effect::cursorPos().QPoint::x()’ from ‘int’ to ‘qreal {aka double}’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/effects/wobblywindows/wobblywindows.cpp:435:51: warning: narrowing conversion of ‘KWin::Effect::cursorPos().QPoint::y()’ from ‘int’ to ‘qreal {aka double}’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/scene_xrender.cpp: In member function ‘virtual void KWin::SceneXrender::Window::performPaint(int, QRegion, KWin::WindowPaintData)’:
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/scene_xrender.cpp:692:88: warning: narrowing conversion of ‘(((1.0e+0 - data.KWin::WindowPaintData::brightness) * 6.5535e+4) * data.KWin::WindowPaintData::opacity)’ from ‘double’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing]
/.jenkins/jobs/kde-workspace/workspace/kwin/scene_opengl.cpp: In member function ‘void KWin::SceneOpenGL::Window::prepareRenderStates(KWin::SceneOpenGL::Window::TextureType, double, double, double, KWin::GLTexture*)’:
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/scene_opengl.cpp:908:106: warning: narrowing conversion of ‘saturation’ from ‘double’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/scene_opengl.cpp:976:105: warning: narrowing conversion of ‘opacity’ from ‘double’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/lanczosfilter.cpp: In member function ‘void KWin::LanczosFilter::prepareRenderStates(KWin::GLTexture*, double, double, double)’:
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/lanczosfilter.cpp:435:106: warning: narrowing conversion of ‘saturation’ from ‘double’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
/usr/share/tomcat7/.jenkins/jobs/kde-workspace/workspace/kwin/lanczosfilter.cpp:503:105: warning: narrowing conversion of ‘opacity’ from ‘double’ to ‘float’ inside { } is ill-formed in C++11 [-Wnarrowing]
Comment 1 Martin Flöser 2013-02-27 11:00:07 UTC
warnings have been fixed in the meantime