fixes for the compilation warnings with Sun CC:
1. some fixes for "String literal to char * conversion" warnings (many more left in the *.xpm files) 2. fixes for "assignment of function to extern "C" function" 3. a few other miscellaneous ones git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -706,8 +706,10 @@ int WXDLLEXPORT wxDbConnectionsInUse(void);
|
||||
|
||||
// Writes a message to the wxLog window (stdout usually) when an internal error
|
||||
// situation occurs. This function only works in DEBUG builds
|
||||
const wxChar WXDLLEXPORT *wxDbLogExtendedErrorMsg(const wxChar *userText, wxDb *pDb,
|
||||
wxChar *ErrFile, int ErrLine);
|
||||
const wxChar WXDLLEXPORT *wxDbLogExtendedErrorMsg(const wxChar *userText,
|
||||
wxDb *pDb,
|
||||
const wxChar *ErrFile,
|
||||
int ErrLine);
|
||||
|
||||
|
||||
// This function sets the sql log state for all open wxDb objects
|
||||
|
@@ -235,16 +235,19 @@ typedef int wxWindowID;
|
||||
#define wxCALLBACK
|
||||
#endif // platform
|
||||
|
||||
// callling convention for the qsort(3) callback
|
||||
// generic calling convention for the extern "C" functions
|
||||
|
||||
#if defined(__VISUALC__)
|
||||
#define wxCMPFUNC_CONV _cdecl
|
||||
#define wxC_CALLING_CONV _cdecl
|
||||
#elif defined(__VISAGECPP__)
|
||||
#define wxCMPFUNC_CONV _Optlink
|
||||
#define wxC_CALLING_CONV _Optlink
|
||||
#else // !Visual C++
|
||||
#define wxCMPFUNC_CONV
|
||||
#define wxC_CALLING_CONV
|
||||
#endif // compiler
|
||||
|
||||
// callling convention for the qsort(3) callback
|
||||
#define wxCMPFUNC_CONV wxC_CALLING_CONV
|
||||
|
||||
// compatibility :-(
|
||||
#define CMPFUNC_CONV wxCMPFUNC_CONV
|
||||
|
||||
|
@@ -42,7 +42,10 @@
|
||||
callback compare function for quick sort
|
||||
must return negative value, 0 or positive value if pItem1 <, = or > pItem2
|
||||
*/
|
||||
extern "C"
|
||||
{
|
||||
typedef int (wxCMPFUNC_CONV *CMPFUNC)(const void* pItem1, const void* pItem2);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
/**
|
||||
|
@@ -97,16 +97,16 @@ public :
|
||||
wxDouble m_y;
|
||||
};
|
||||
|
||||
wxPoint2DDouble operator+(const wxPoint2DDouble& pt1 , const wxPoint2DDouble& pt2);
|
||||
wxPoint2DDouble operator-(const wxPoint2DDouble& pt1 , const wxPoint2DDouble& pt2);
|
||||
wxPoint2DDouble operator*(const wxPoint2DDouble& pt1 , const wxPoint2DDouble& pt2);
|
||||
wxPoint2DDouble operator*(wxDouble n , const wxPoint2DDouble& pt);
|
||||
wxPoint2DDouble operator*(wxInt32 n , const wxPoint2DDouble& pt);
|
||||
wxPoint2DDouble operator*(const wxPoint2DDouble& pt , wxDouble n);
|
||||
wxPoint2DDouble operator*(const wxPoint2DDouble& pt , wxInt32 n);
|
||||
wxPoint2DDouble operator/(const wxPoint2DDouble& pt1 , const wxPoint2DDouble& pt2);
|
||||
wxPoint2DDouble operator/(const wxPoint2DDouble& pt , wxDouble n);
|
||||
wxPoint2DDouble operator/(const wxPoint2DDouble& pt , wxInt32 n);
|
||||
inline wxPoint2DDouble operator+(const wxPoint2DDouble& pt1 , const wxPoint2DDouble& pt2);
|
||||
inline wxPoint2DDouble operator-(const wxPoint2DDouble& pt1 , const wxPoint2DDouble& pt2);
|
||||
inline wxPoint2DDouble operator*(const wxPoint2DDouble& pt1 , const wxPoint2DDouble& pt2);
|
||||
inline wxPoint2DDouble operator*(wxDouble n , const wxPoint2DDouble& pt);
|
||||
inline wxPoint2DDouble operator*(wxInt32 n , const wxPoint2DDouble& pt);
|
||||
inline wxPoint2DDouble operator*(const wxPoint2DDouble& pt , wxDouble n);
|
||||
inline wxPoint2DDouble operator*(const wxPoint2DDouble& pt , wxInt32 n);
|
||||
inline wxPoint2DDouble operator/(const wxPoint2DDouble& pt1 , const wxPoint2DDouble& pt2);
|
||||
inline wxPoint2DDouble operator/(const wxPoint2DDouble& pt , wxDouble n);
|
||||
inline wxPoint2DDouble operator/(const wxPoint2DDouble& pt , wxInt32 n);
|
||||
|
||||
inline wxPoint2DDouble::wxPoint2DDouble()
|
||||
{
|
||||
|
@@ -107,7 +107,7 @@ public:
|
||||
// (like sscanf() does)
|
||||
// NOTE: unlike scanf family, this function only accepts
|
||||
// *one* parameter !
|
||||
int ScanParam(const wxString& par, wxChar *format, void *param) const;
|
||||
int ScanParam(const wxString& par, const wxChar *format, void *param) const;
|
||||
|
||||
// Returns string containing all params.
|
||||
wxString GetAllParams() const;
|
||||
|
@@ -64,7 +64,10 @@ enum wxKeyType
|
||||
// type of compare function for list sort operation (as in 'qsort'): it should
|
||||
// return a negative value, 0 or positive value if the first element is less
|
||||
// than, equal or greater than the second
|
||||
extern "C"
|
||||
{
|
||||
typedef int (* LINKAGEMODE wxSortCompareFunction)(const void *elem1, const void *elem2);
|
||||
}
|
||||
|
||||
//
|
||||
typedef int (* LINKAGEMODE wxListIterateFunction)(void *current);
|
||||
|
Reference in New Issue
Block a user