[Mapguide-trac] [mapguide-trac] #2442: Fix gcc "deprecated conversion from string constant" warnings

MapGuide Open Source trac_mapguide at osgeo.org
Tue May 6 11:32:20 PDT 2014


#2442: Fix gcc "deprecated conversion from string constant" warnings
-----------------------+----------------------------------------------------
   Reporter:  jng      |       Owner:  jng
       Type:  task     |      Status:  new
   Priority:  low      |   Milestone:     
  Component:  General  |     Version:     
   Severity:  trivial  |    Keywords:     
External_id:           |  
-----------------------+----------------------------------------------------
 The Linux build of MapGuide is very noisy, spamming a lot of "deprecated
 conversion from string constant to char/wchar_t" warnings.

 The main source of this warning spam is from MgObject and the
 DECLARE_CLASSNAME macro that code-gens this implementation for derived
 classes:

 The declaration
 {{{
 virtual char* GetMultiByteClassName();
 }}}

 Should be
 {{{
 virtual const char* GetMultiByteClassName() const;
 }}}

 And the declaration
 {{{
 virtual char* GetNameSpace();
 }}}

 Should be
 {{{
 virtual const char* GetNameSpace() const;
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/2442>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list