Opened 10 years ago

#2442 new task

Fix gcc "deprecated conversion from string constant" warnings

Reported by: jng Owned by: jng
Priority: low Milestone:
Component: General Version:
Severity: trivial Keywords:
Cc: External ID:

Description

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;

Change History (0)

Note: See TracTickets for help on using tickets.