[QGIS-trac] Re: [Quantum GIS] #1239: Compilation strict mode and warnings cleanup for GCC 4.1

Quantum GIS qgis at qgis.org
Sat Aug 23 10:51:51 EDT 2008


#1239: Compilation strict mode and warnings cleanup for GCC 4.1
----------------------------------------------------+-----------------------
        Reporter:  mloskot                          |         Owner:  nobody                          
            Type:  patch                            |        Status:  closed                          
        Priority:  minor: annoyance or enhancement  |     Milestone:                                  
       Component:  Build/Install                    |       Version:  HEAD                            
      Resolution:  fixed                            |      Keywords:  gcc  warnings strictness cleanup
Platform_version:  10.5                             |      Platform:  OS X                            
        Must_fix:  No                               |   Status_info:  0                               
----------------------------------------------------+-----------------------
Comment (by mloskot):

 One more note regarding the strict aliasing. Yes, I'd expect Qt breaks
 strict aliasing rules, however it's a good idea to remember it in case
 strange and undefined behavior occurs.

 Recently, we have experienced such problem in GDAL. It was extremely hard
 to find out what's going on without enabled strict aliasing warnings. See
 the story here: [http://trac.osgeo.org/gdal/ticket/2521 XPlane causes
 undefined behavior with GCC 4.3.x]

 If I'd be asked to decide, I did keep these warnings enabled, even if they
 occur in 3rd party libraries. We can't be sure Qt is free of bugs :-)

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/1239#comment:3>
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