<div dir="ltr">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.<div><br></div><div>Unless there is an argument against it, I think Martin's suggestion to disable deprecated warnings for moc files.</div>
<div><br></div><div>Etienne</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 23, 2014 at 1:47 PM, Martin Dobias <span dir="ltr"><<a href="mailto:wonder.sk@gmail.com" target="_blank">wonder.sk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Etienne<br>
<div class=""><br>
<br>
On Sun, Feb 23, 2014 at 11:33 PM, Etienne Tourigny<br>
<<a href="mailto:etourigny.dev@gmail.com">etourigny.dev@gmail.com</a>> wrote:<br>
> Just a remark, there are quite a few new warnings (mostly about deprecated<br>
> functions, but also some unused or variables or parameters) using gcc 4.7.3<br>
><br>
> Here are some, in no particular order, there might be more<br>
><br>
> /data/src/qgis/qgis-etiennesky/build-debug/src/core/moc_qgsmaplayer.cxx: In<br>
> static member function 'static void<br>
> QgsMapLayer::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)':<br>
> /data/src/qgis/qgis-etiennesky/build-debug/src/core/moc_qgsmaplayer.cxx:102:38:<br>
> warning: 'void QgsMapLayer::clearCacheImage()' is deprecated (declared at<br>
> /data/src/qgis/qgis-etiennesky/build-debug/src/core/../../../src/core/qgsmaplayer.h:386)<br>
> [-Wdeprecated-declarations]<br>
<br>
</div>Most of them are in files generated by MOC - maybe we could disable<br>
the deprecation warnings for those files. For the actual QGIS source<br>
code that triggers deprecation warnings, these should get sorted out.<br>
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888">Martin<br>
</font></span></blockquote></div><br></div>