[Qgis-developer] Master doesn't compile

Etienne Tourigny etourigny.dev at gmail.com
Sun Feb 23 09:41:15 PST 2014


I see, sorry I didn't check the actual code... I tried changing the
function to an inline one, but the moc file still triggers the deprecated
warning.

Unless there is an argument against it, I think Martin's suggestion to
disable deprecated warnings for moc files.

Etienne



On Sun, Feb 23, 2014 at 1:47 PM, Martin Dobias <wonder.sk at gmail.com> wrote:

> Hi Etienne
>
>
> On Sun, Feb 23, 2014 at 11:33 PM, Etienne Tourigny
> <etourigny.dev at gmail.com> wrote:
> > Just a remark, there are quite a few new warnings (mostly about
> deprecated
> > functions, but also some unused or variables or parameters) using gcc
> 4.7.3
> >
> > Here are some, in no particular order, there might be more
> >
> > /data/src/qgis/qgis-etiennesky/build-debug/src/core/moc_qgsmaplayer.cxx:
> In
> > static member function 'static void
> > QgsMapLayer::qt_static_metacall(QObject*, QMetaObject::Call, int,
> void**)':
> >
> /data/src/qgis/qgis-etiennesky/build-debug/src/core/moc_qgsmaplayer.cxx:102:38:
> > warning: 'void QgsMapLayer::clearCacheImage()' is deprecated (declared at
> >
> /data/src/qgis/qgis-etiennesky/build-debug/src/core/../../../src/core/qgsmaplayer.h:386)
> > [-Wdeprecated-declarations]
>
> Most of them are in files generated by MOC - maybe we could disable
> the deprecation warnings for those files. For the actual QGIS source
> code that triggers deprecation warnings, these should get sorted out.
>
> Regards
> Martin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140223/9ad48321/attachment.html>


More information about the Qgis-developer mailing list