Avoid warnings about literals-to-char* conversions in wxMotif
Suppress -Wwrite-strings warnings.
This commit is contained in:
parent
655b343246
commit
42108c64f6
@ -118,7 +118,7 @@ bool wxTopLevelWindowMotif::Create( wxWindow *parent, wxWindowID id,
|
||||
// Intercept CLOSE messages from the window manager
|
||||
Widget shell = (Widget)GetShellWidget();
|
||||
Atom WM_DELETE_WINDOW = XmInternAtom( XtDisplay( shell ),
|
||||
"WM_DELETE_WINDOW", False );
|
||||
(char*)"WM_DELETE_WINDOW", False );
|
||||
|
||||
// Remove and add WM_DELETE_WINDOW so ours is only handler
|
||||
// This only appears to be necessary for wxDialog, but does not hurt
|
||||
|
@ -2608,7 +2608,7 @@ void wxGetTextExtent(const wxWindow* window, const wxString& str,
|
||||
if (table == NULL)
|
||||
table = XmeGetDefaultRenderTable(w, XmTEXT_RENDER_TABLE);
|
||||
|
||||
rendition = XmRenderTableGetRendition( table, "" );
|
||||
rendition = XmRenderTableGetRendition( table, (char*)"" );
|
||||
XtSetArg( args[count], XmNfont, 0 ); ++count;
|
||||
XtSetArg( args[count], XmNfontType, 0 ); ++count;
|
||||
XmRenditionRetrieve( rendition, args, count );
|
||||
|
Loading…
Reference in New Issue
Block a user