[Digikam-devel] warnings from MSVC2008
Gilles Caulier
caulier.gilles at gmail.com
Sat Apr 2 13:47:00 BST 2011
Hi all,
Compiling digiKam 2.0.0 under MSVC 2008 (Win7) i can see this warning
(in French) :
[ 63%] Building CXX object
core/digikam/CMakeFiles/digikamcore.dir/__/libs/widgets/graphicsview/regionframeitem.cpp.obj
regionframeitem.cpp
D:\devel\msvc\digikam-sc\core\libs\widgets\graphicsview\regionframeitem.cpp(621)
: warning C4806: '&' : opération risquée : aucune valeur de type 'boo
l' promue en type 'Digikam::RegionFrameItem::Flag' ne peut être égale
à la constante donnée
[ 63%] Building CXX object
core/digikam/CMakeFiles/digikamcore.dir/__/libs/widgets/graphicsview/graphicsdimgitem.cpp.obj
graphicsdimgitem.cpp
Line is there :
https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/libs/widgets/graphicsview/regionframeitem.cpp#L621
The problem is NOT operator on front of d->flags, which convert it to
pure boolean and applying AND operator with GeometryEditable is a
problem.
http://msdn.microsoft.com/en-us/library/fx3e68bw%28v=vs.80%29.aspx
What do you think about ?
Gilles Caulier
More information about the Digikam-devel
mailing list