[QGIS-trac] Re: [Quantum GIS] #234: ISO C++ forbids casting between
pointer-to-function and pointer-to-object
Quantum GIS
qgis at qgis.org
Thu Aug 21 00:32:16 EDT 2008
#234: ISO C++ forbids casting between pointer-to-function and pointer-to-object
----------------------------------------------------+-----------------------
Reporter: mloskot | Owner: gsherman
Type: enhancement | Status: new
Priority: minor: annoyance or enhancement | Milestone: Version 1.0.0
Component: Build/Install | Version: HEAD
Resolution: | Keywords: casting pointer function
Platform_version: Ubuntu 6.06 | Platform: Debian
Must_fix: No | Status_info: 0
----------------------------------------------------+-----------------------
Comment (by mloskot):
Tim,
Current version of QGIS SVN trunk does not set any flags like -Wall,
-Werroretc. I have to do it manually:
{{{
cmake ... -D CMAKE_CXX_FLAGS:STRING="-pedantic -Wall -Wno-long-long
-fstrict-aliasing -Wstrict-aliasing=1" ..
}}}
-Werror flag removed, becuase the baby does not build with it, warnings
occur.
@anonymous
Agreed, because nasty_cast does the same what std::memcpy can do.
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/234#comment:11>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list