Modifications to get rid of warnings on VMS
Modified Files:
wxWindows/include/wx/utils.h wxWindows/src/common/date.cpp
wxWindows/src/common/datstrm.cpp
wxWindows/src/common/gdicmn.cpp wxWindows/src/common/image.cpp
wxWindows/src/common/object.cpp
wxWindows/src/common/sckipc.cpp
wxWindows/src/common/txtstrm.cpp
wxWindows/src/generic/fontdlgg.cpp
wxWindows/src/generic/listctrl.cpp
wxWindows/src/generic/scrolwin.cpp
wxWindows/src/generic/splitter.cpp wxWindows/src/motif/app.cpp
wxWindows/src/motif/bitmap.cpp
wxWindows/src/motif/bmpbuttn.cpp
wxWindows/src/motif/button.cpp
wxWindows/src/motif/checkbox.cpp
wxWindows/src/motif/choice.cpp wxWindows/src/motif/clipbrd.cpp
wxWindows/src/motif/colour.cpp
wxWindows/src/motif/combobox.cpp
wxWindows/src/motif/control.cpp wxWindows/src/motif/cursor.cpp
wxWindows/src/motif/dataobj.cpp
wxWindows/src/motif/dcclient.cpp
wxWindows/src/motif/dcmemory.cpp
wxWindows/src/motif/dcscreen.cpp
wxWindows/src/motif/dialog.cpp wxWindows/src/motif/filedlg.cpp
wxWindows/src/motif/font.cpp wxWindows/src/motif/frame.cpp
wxWindows/src/motif/gauge.cpp wxWindows/src/motif/icon.cpp
wxWindows/src/motif/listbox.cpp wxWindows/src/motif/mdi.cpp
wxWindows/src/motif/menu.cpp wxWindows/src/motif/menuitem.cpp
wxWindows/src/motif/msgdlg.cpp wxWindows/src/motif/palette.cpp
wxWindows/src/motif/radiobox.cpp
wxWindows/src/motif/radiobut.cpp
wxWindows/src/motif/region.cpp
wxWindows/src/motif/scrolbar.cpp
wxWindows/src/motif/settings.cpp
wxWindows/src/motif/slider.cpp wxWindows/src/motif/statbmp.cpp
wxWindows/src/motif/statbox.cpp
wxWindows/src/motif/stattext.cpp
wxWindows/src/motif/textctrl.cpp wxWindows/src/motif/timer.cpp
wxWindows/src/motif/toolbar.cpp wxWindows/src/motif/utils.cpp
wxWindows/src/motif/window.cpp wxWindows/src/unix/fontutil.cpp
wxWindows/src/unix/utilsunx.cpp
----------------------------------------------------------------------
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4611
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#ifdef __X__
+#ifdef __VMS__ // Xlib.h for VMS is not (yet) compatible with C++
+ // The resulting warnings are switched off here
+#pragma message disable nosimpint
+#endif
#include <X11/Xlib.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#define wxMAX_RGB 0xff
#define wxMAX_SV 1000
: (abs(year)) );
return wxString(buf);
}
- return wxString(wxT(""));
}
void wxDate::SetFormat( int format )
default:
return 0;
}
- return 0;
}
///////////////////////////////////////////////////////////////
#if wxUSE_APPLE_IEEE
ConvertToIeeeExtended(d, (unsigned char *)buf);
#else
-# pragma warning "wxDataOutputStream::WriteDouble() not using IeeeExtended - will not work!"
- buf[0] = '\0';
+#ifndef __VMS__
+# pragma warning "wxDataOutputStream::WriteDouble() not using IeeeExtended - will not work!"
+#endif
+ buf[0] = '\0';
#endif
m_output->Write(buf, 10);
}
#endif
#ifdef __WXMOTIF__
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#endif
#if !USE_SHARED_LIBRARY
//-----------------------------------------------------------------------------
#ifdef __WXMOTIF__
-
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/utils.h"
#include <math.h>
}
return (wxObject*) NULL;
}
- return (wxObject*) NULL;
}
#if wxUSE_SERIAL
delete client;
return NULL;
}
- return NULL;
}
wxConnectionBase *wxTCPClient::OnMakeConnection()
return c;
}
- // this shouldn't happen
- return (wxChar) 0;
}
inline bool wxTextInputStream::EatEOL(const wxChar &c)
default:
return wxT("Normal");
}
- return wxT("Normal");
}
wxChar *wxFontStyleIntToString(int style)
default:
return wxT("Normal");
}
- return wxT("Normal");
}
wxChar *wxFontFamilyIntToString(int family)
default:
return wxT("Swiss");
}
- return wxT("Swiss");
}
int wxFontFamilyStringToInt(wxChar *family)
long s = style;
- if ((s & wxLC_REPORT == 0) &&
+#ifdef __VMS__
+#pragma message disable codcauunr
+ // VMS reports on this part the warning:
+ // statement either is unreachable or causes unreachable code
+#endif
+ if ((s & wxLC_REPORT == 0) &&
(s & wxLC_LIST == 0) &&
(s & wxLC_ICON == 0))
{
s = s | wxLC_LIST;
}
+#ifdef __VMS__
+#pragma message enable codcauunr
+#endif
bool ret = wxControl::Create( parent, id, pos, size, s, name );
#ifdef __WXMOTIF__
// For wxRETAINED implementation
+#ifdef __VMS__ //VMS's Xm.h is not (yet) compatible with C++
+ //This code switches off the compiler warnings
+# pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS__
+# pragma message enable nosimpint
+#endif
#endif
wxScrolledWindow::wxScrolledWindow()
else
return FALSE;
}
-
- return FALSE;
}
// Draw 3D effect borders
#include "wx/resource.h"
#endif
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xresource.h>
#include <X11/Xatom.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include "wx/dcmemory.h"
#include "wx/image.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include "wx/bmpbuttn.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/PushBG.h>
#include <Xm/PushB.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include "wx/utils.h"
#include "wx/panel.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/PushBG.h>
#include <Xm/PushB.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include "wx/checkbox.h"
#include "wx/utils.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Label.h>
#include <Xm/LabelG.h>
#include <Xm/ToggleB.h>
#include <Xm/ToggleBG.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include "wx/choice.h"
#include "wx/utils.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
#include <Xm/PushBG.h>
#include <Xm/PushB.h>
#include <Xm/RowColumn.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include "wx/clipbrd.h"
#include "wx/dataobj.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
#include <Xm/CutPaste.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include <string.h>
#include "wx/colour.h"
#include "wx/app.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#if wxUSE_COMBOBOX
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "xmcombo/xmcombo.h"
void wxComboBoxCallback (Widget w, XtPointer clientData,
#include "wx/panel.h"
#include "wx/utils.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#if !USE_SHARED_LIBRARY
IMPLEMENT_ABSTRACT_CLASS(wxControl, wxWindow)
#include "wx/app.h"
#include "wx/utils.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
#include <X11/cursorfont.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include "wx/dataobj.h"
#include "wx/app.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/utils.h"
//-------------------------------------------------------------------------
#include <math.h>
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include "wx/settings.h"
#include "wx/utils.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include "wx/dcscreen.h"
#include "wx/utils.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include "wx/app.h"
#include "wx/settings.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
#include <X11/Shell.h>
#if XmVersion > 1000
#include <Xm/Protocols.h>
#endif
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include "wx/app.h"
#include "wx/settings.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
#include <Xm/MwmUtil.h>
#include <Xm/Label.h>
#include <Xm/FileSB.h>
#include <Xm/RowColumn.h>
#include <Xm/LabelG.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#pragma implementation "font.h"
#endif
+#ifdef __VMS
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS
+#pragma message enable nosimpint
+#endif
#include "wx/defs.h"
#include "wx/string.h"
#include "wx/app.h"
#include "wx/utils.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#if defined(__ultrix) || defined(__sgi)
#include <Xm/Frame.h>
#endif
#if XmVersion > 1000
#include <Xm/Protocols.h>
#endif
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
this->Destroy();
}
+#ifdef __VMS__
+// I added this function because I got missing symbols when linking
+// Maybe it should be included on all platforms. But what should it do?
+void wxFrame::OnIdle(wxIdleEvent& WXUNUSED(event))
+{
+}
+#endif
+
// Destroy the window (delayed, if a managed window)
bool wxFrame::Destroy()
{
#include "wx/gauge.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#if !USE_SHARED_LIBRARY
#include "wx/icon.h"
#include "wx/window.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
#include <X11/cursorfont.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include "wx/log.h"
#include "wx/utils.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/List.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#if !USE_SHARED_LIBRARY
#include "wx/menu.h"
#include "wx/settings.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
#include <Xm/BulletinB.h>
#include <Xm/Form.h>
#include <Xm/PushBG.h>
#include <Xm/AtomMgr.h>
#include <Xm/Protocols.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include "wx/frame.h"
#include "wx/settings.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Label.h>
#include <Xm/LabelG.h>
#include <Xm/CascadeBG.h>
#include <Xm/ToggleB.h>
#include <Xm/ToggleBG.h>
#include <Xm/RowColumn.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include "wx/utils.h"
#include "wx/frame.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Label.h>
#include <Xm/LabelG.h>
#include <Xm/CascadeBG.h>
#include <Xm/ToggleB.h>
#include <Xm/ToggleBG.h>
#include <Xm/RowColumn.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
// headers
// ----------------------------------------------------------------------------
+#ifdef __VMS
+#pragma message disable nosimpint
+#endif
#include <X11/Xlib.h>
#include <Xm/Xm.h>
#include <Xm/MessageB.h>
+#ifdef __VMS
+#pragma message enable nosimpint
+#endif
#include "wx/app.h"
#include "wx/intl.h"
#include "wx/app.h"
#include "wx/utils.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#if !USE_SHARED_LIBRARIES
#include "wx/radiobox.h"
#include "wx/utils.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Label.h>
#include <Xm/LabelG.h>
#include <Xm/ToggleB.h>
#include <Xm/RowColumn.h>
#include <Xm/Form.h>
#include <Xm/Frame.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#endif
XmNfontList, fontList,
NULL);
+#ifdef __VMS__
+#pragma message disable voiincconext
+ // VMS gives here the compiler warning:
+ // conversion from pointer to function to void* permitted
+ // as an extension
+#endif
XtAddCallback ((Widget) m_radioButtons[i], XmNvalueChangedCallback, (XtCallbackProc) wxRadioBoxCallback,
(XtCallbackProc) this);
+#ifdef __VMS__
+#pragma message enable voiincconext
+#endif
}
SetSelection (0);
#include "wx/radiobut.h"
#include "wx/utils.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Label.h>
#include <Xm/LabelG.h>
#include <Xm/ToggleB.h>
#include <Xm/ToggleBG.h>
#include <Xm/RowColumn.h>
#include <Xm/Form.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
NULL);
XmStringFree (text);
+#ifdef __VMS__
+#pragma message disable voiincconext
+ // VMS gives here the compiler warning:
+ // conversion from pointer to function to void* permitted
+ // as an extension
+#endif
XtAddCallback (radioButtonWidget, XmNvalueChangedCallback, (XtCallbackProc) wxRadioButtonCallback,
(XtCallbackProc) this);
+#ifdef __VMS__
+#pragma message enable voiincconext
+#endif
m_mainWidget = (WXWidget) radioButtonWidget;
#include "wx/region.h"
#include "wx/gdicmn.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
// #include "wx/motif/private.h"
#if !USE_SHARED_LIBRARY
#include "wx/scrolbar.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <X11/IntrinsicP.h>
#include <Xm/Xm.h>
#include <Xm/RowColumn.h>
#include <Xm/ScrollBar.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
default:
return 0;
}
- return 0;
}
#include "wx/slider.h"
#include "wx/utils.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
#include <Xm/Label.h>
#include <Xm/LabelG.h>
#include <Xm/RowColumn.h>
#include <Xm/Scale.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
m_mainWidget = (WXWidget) sliderWidget;
+#ifdef __VMS__
+#pragma message disable codcauunr
+ // VMS gives here the compiler warning :
+ // statement either is unreachable or causes unreachable code
+#endif
if(style & wxSL_NOTIFY_DRAG)
XtAddCallback (sliderWidget, XmNdragCallback,
(XtCallbackProc) wxSliderCallback, (XtPointer) this);
else
XtAddCallback (sliderWidget, XmNvalueChangedCallback,
(XtCallbackProc) wxSliderCallback, (XtPointer) this);
+#ifdef __VMS__
+#pragma message enable codcauunr
+#endif
XtAddCallback (sliderWidget, XmNdragCallback, (XtCallbackProc) wxSliderCallback, (XtPointer) this);
#include "wx/statbmp.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
#include <Xm/Label.h>
#include <Xm/LabelG.h>
#include <Xm/RowColumn.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include "wx/statbox.h"
#include "wx/utils.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Frame.h>
#include <Xm/Form.h>
#include <Xm/Label.h>
#include <Xm/LabelG.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include <stdio.h>
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Label.h>
#include <Xm/LabelG.h>
#include <Xm/PushBG.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl)
#include "wx/filefn.h"
#include "wx/utils.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Text.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include "wx/app.h"
#include "wx/list.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include "wx/timer.h"
#include "wx/toolbar.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
#include <Xm/PushBG.h>
#include <Xm/PushB.h>
#include <Xm/ToggleB.h>
#include <Xm/ToggleBG.h>
#include <Xm/Form.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#include <sysent.h>
#endif
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/unix/execute.h"
else
return FALSE;
}
-
- return FALSE;
}
wxString wxGetDisplayName()
// handling
return NULL;
- // The accelerator text is after the \t char.
+#if 0
+ // The accelerator text is after the \t char.
while (*s && *s != '\t')
s++;
if (*s == '\0')
}
delete[]tmp;
return wxBuffer;
+#endif
}
XmString wxFindAcceleratorText (const char *s)
// handling
return NULL;
- // The accelerator text is after the \t char.
+#if 0
+ // The accelerator text is after the \t char.
while (*s && *s != '\t')
s++;
if (*s == '\0')
s++;
XmString text = XmStringCreateSimple ((char *)s);
return text;
+#endif
}
// ----------------------------------------------------------------------------
#include "wx/dnd.h"
#endif
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
#include <Xm/DrawingA.h>
#include <Xm/Frame.h>
#include <Xm/Label.h>
#include <Xm/RowColumn.h> // for XmMenuPosition
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/motif/private.h"
#endif // PCH
#ifdef __X__
- #include <X11/Xlib.h>
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
+#include <X11/Xlib.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include "wx/utils.h" // for wxGetDisplay()
#elif defined(__WXGTK__)
return exitcode;
#endif // wxUSE_GUI
}
+ return 0;
#undef ARGS_CLEANUP
}