OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

273 lines
13 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../wxwidgets24/gcc-4.0.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Taken from Fedora Core to fix compilation with gcc-4.0.
  17. diff -ur wxPythonSrc-2.4.2.4_orig/contrib/src/stc/scintilla/include/KeyWords.h wxPythonSrc-2.4.2.4/contrib/src/stc/scintilla/include/KeyWords.h
  18. --- wxPythonSrc-2.4.2.4_orig/contrib/src/stc/scintilla/include/KeyWords.h 2003-09-18 00:59:53.000000000 +0200
  19. +++ wxPythonSrc-2.4.2.4/contrib/src/stc/scintilla/include/KeyWords.h 2005-09-11 02:41:02.000000000 +0200
  20. @@ -29,6 +29,7 @@
  21. LexerModule(int language_, LexerFunction fnLexer_,
  22. const char *languageName_=0, LexerFunction fnFolder_=0,
  23. const char * const wordListDescriptions_[] = NULL);
  24. + virtual ~LexerModule() {};
  25. int GetLanguage() const { return language; }
  26. // -1 is returned if no WordList information is available
  27. diff -ur wxPythonSrc-2.4.2.4_orig/contrib/src/stc/scintilla/src/Document.cxx wxPythonSrc-2.4.2.4/contrib/src/stc/scintilla/src/Document.cxx
  28. --- wxPythonSrc-2.4.2.4_orig/contrib/src/stc/scintilla/src/Document.cxx 2003-09-18 01:00:28.000000000 +0200
  29. +++ wxPythonSrc-2.4.2.4/contrib/src/stc/scintilla/src/Document.cxx 2005-09-11 02:41:02.000000000 +0200
  30. @@ -850,6 +850,7 @@
  31. DocumentIndexer(Document *pdoc_, int end_) :
  32. pdoc(pdoc_), end(end_) {
  33. }
  34. + virtual ~DocumentIndexer() {};
  35. virtual char CharAt(int index) {
  36. if (index < 0 || index >= end)
  37. diff -ur wxPythonSrc-2.4.2.4_orig/contrib/src/stc/scintilla/src/ExternalLexer.h wxPythonSrc-2.4.2.4/contrib/src/stc/scintilla/src/ExternalLexer.h
  38. --- wxPythonSrc-2.4.2.4_orig/contrib/src/stc/scintilla/src/ExternalLexer.h 2003-09-18 01:48:01.000000000 +0200
  39. +++ wxPythonSrc-2.4.2.4/contrib/src/stc/scintilla/src/ExternalLexer.h 2005-09-11 02:41:02.000000000 +0200
  40. @@ -38,6 +38,7 @@
  41. strncpy(name, languageName_, sizeof(name));
  42. languageName = name;
  43. };
  44. + virtual ~ExternalLexerModule() {};
  45. virtual void Lex(unsigned int startPos, int lengthDoc, int initStyle,
  46. WordList *keywordlists[], Accessor &styler) const;
  47. virtual void Fold(unsigned int startPos, int lengthDoc, int initStyle,
  48. diff -ur wxPythonSrc-2.4.2.4_orig/contrib/src/stc/scintilla/src/RESearch.h wxPythonSrc-2.4.2.4/contrib/src/stc/scintilla/src/RESearch.h
  49. --- wxPythonSrc-2.4.2.4_orig/contrib/src/stc/scintilla/src/RESearch.h 2003-09-18 01:00:47.000000000 +0200
  50. +++ wxPythonSrc-2.4.2.4/contrib/src/stc/scintilla/src/RESearch.h 2005-09-11 02:41:02.000000000 +0200
  51. @@ -20,6 +20,7 @@
  52. class CharacterIndexer {
  53. public:
  54. virtual char CharAt(int index)=0;
  55. + virtual ~CharacterIndexer() {};
  56. };
  57. class RESearch {
  58. diff -ur wxPythonSrc-2.4.2.4_orig/contrib/src/xrc/expat/xmlparse/xmlparse.c wxPythonSrc-2.4.2.4/contrib/src/xrc/expat/xmlparse/xmlparse.c
  59. --- wxPythonSrc-2.4.2.4_orig/contrib/src/xrc/expat/xmlparse/xmlparse.c 2001-06-10 00:43:36.000000000 +0200
  60. +++ wxPythonSrc-2.4.2.4/contrib/src/xrc/expat/xmlparse/xmlparse.c 2005-09-11 02:41:02.000000000 +0200
  61. @@ -203,8 +203,10 @@
  62. static enum XML_Error
  63. doProlog(XML_Parser parser, const ENCODING *enc, const char *s,
  64. const char *end, int tok, const char *next, const char **nextPtr);
  65. +#ifdef XML_DTD
  66. static enum XML_Error
  67. processInternalParamEntity(XML_Parser parser, ENTITY *entity);
  68. +#endif /* XML_DTD */
  69. static enum XML_Error
  70. doContent(XML_Parser parser, int startTagLevel, const ENCODING *enc,
  71. const char *start, const char *end, const char **endPtr);
  72. diff -ur wxPythonSrc-2.4.2.4_orig/contrib/src/xrc/xml.cpp wxPythonSrc-2.4.2.4/contrib/src/xrc/xml.cpp
  73. --- wxPythonSrc-2.4.2.4_orig/contrib/src/xrc/xml.cpp 2003-10-01 20:58:04.000000000 +0200
  74. +++ wxPythonSrc-2.4.2.4/contrib/src/xrc/xml.cpp 2005-09-11 02:41:02.000000000 +0200
  75. @@ -354,8 +354,8 @@
  76. #else
  77. if ( conv )
  78. {
  79. - size_t nLen = (len != wxSTRING_MAXLEN) ? len :
  80. - nLen = wxConvUTF8.MB2WC((wchar_t*) NULL, s, 0);
  81. + size_t nLen = ((len != wxSTRING_MAXLEN) ? len :
  82. + wxConvUTF8.MB2WC((wchar_t*) NULL, s, 0));
  83. wchar_t *buf = new wchar_t[nLen+1];
  84. wxConvUTF8.MB2WC(buf, s, nLen);
  85. diff -ur wxPythonSrc-2.4.2.4_orig/include/wx/caret.h wxPythonSrc-2.4.2.4/include/wx/caret.h
  86. --- wxPythonSrc-2.4.2.4_orig/include/wx/caret.h 2002-09-05 07:17:11.000000000 +0200
  87. +++ wxPythonSrc-2.4.2.4/include/wx/caret.h 2005-09-11 02:41:02.000000000 +0200
  88. @@ -60,6 +60,7 @@
  89. (void)Create(window, size);
  90. }
  91. + virtual ~wxCaretBase() {};
  92. // Create() functions - same as ctor but returns the success code
  93. // --------------------------------------------------------------
  94. diff -ur wxPythonSrc-2.4.2.4_orig/include/wx/clipbrd.h wxPythonSrc-2.4.2.4/include/wx/clipbrd.h
  95. --- wxPythonSrc-2.4.2.4_orig/include/wx/clipbrd.h 2002-09-05 07:17:11.000000000 +0200
  96. +++ wxPythonSrc-2.4.2.4/include/wx/clipbrd.h 2005-09-11 02:41:02.000000000 +0200
  97. @@ -39,6 +39,7 @@
  98. {
  99. public:
  100. wxClipboardBase();
  101. + virtual ~wxClipboardBase() {};
  102. // open the clipboard before Add/SetData() and GetData()
  103. virtual bool Open() = 0;
  104. diff -ur wxPythonSrc-2.4.2.4_orig/include/wx/datetime.h wxPythonSrc-2.4.2.4/include/wx/datetime.h
  105. --- wxPythonSrc-2.4.2.4_orig/include/wx/datetime.h 2003-06-25 21:12:39.000000000 +0200
  106. +++ wxPythonSrc-2.4.2.4/include/wx/datetime.h 2005-09-11 02:41:02.000000000 +0200
  107. @@ -1300,6 +1300,7 @@
  108. {
  109. friend class wxDateTimeHolidaysModule;
  110. public:
  111. + virtual ~wxDateTimeHolidayAuthority() {};
  112. // returns TRUE if the given date is a holiday
  113. static bool IsHoliday(const wxDateTime& dt);
  114. @@ -1340,6 +1341,8 @@
  115. // the holidays for this class are all Saturdays and Sundays
  116. class WXDLLEXPORT wxDateTimeWorkDays : public wxDateTimeHolidayAuthority
  117. {
  118. +public:
  119. + virtual ~wxDateTimeWorkDays() {};
  120. protected:
  121. virtual bool DoIsHoliday(const wxDateTime& dt) const;
  122. virtual size_t DoGetHolidaysInRange(const wxDateTime& dtStart,
  123. diff -ur wxPythonSrc-2.4.2.4_orig/include/wx/dir.h wxPythonSrc-2.4.2.4/include/wx/dir.h
  124. --- wxPythonSrc-2.4.2.4_orig/include/wx/dir.h 2002-09-05 07:17:11.000000000 +0200
  125. +++ wxPythonSrc-2.4.2.4/include/wx/dir.h 2005-09-11 02:41:02.000000000 +0200
  126. @@ -52,6 +52,7 @@
  127. class WXDLLEXPORT wxDirTraverser
  128. {
  129. public:
  130. + virtual ~wxDirTraverser() {};
  131. // called for each file found by wxDir::Traverse()
  132. //
  133. // return wxDIR_STOP or wxDIR_CONTINUE from here
  134. diff -ur wxPythonSrc-2.4.2.4_orig/include/wx/event.h wxPythonSrc-2.4.2.4/include/wx/event.h
  135. --- wxPythonSrc-2.4.2.4_orig/include/wx/event.h 2003-06-02 22:40:21.000000000 +0200
  136. +++ wxPythonSrc-2.4.2.4/include/wx/event.h 2005-09-11 02:41:02.000000000 +0200
  137. @@ -1952,6 +1952,7 @@
  138. : wxEventTableEntryBase(id, idLast, fn, data),
  139. m_eventType(evType)
  140. { }
  141. + virtual ~wxEventTableEntry() {};
  142. // the reference to event type: this allows us to not care about the
  143. // (undefined) order in which the event table entries and the event types
  144. diff -ur wxPythonSrc-2.4.2.4_orig/include/wx/geometry.h wxPythonSrc-2.4.2.4/include/wx/geometry.h
  145. --- wxPythonSrc-2.4.2.4_orig/include/wx/geometry.h 2003-04-17 19:37:38.000000000 +0200
  146. +++ wxPythonSrc-2.4.2.4/include/wx/geometry.h 2005-09-11 02:41:02.000000000 +0200
  147. @@ -785,6 +785,7 @@
  148. class wxTransform2D
  149. {
  150. public :
  151. + virtual ~wxTransform2D() {};
  152. virtual void Transform( wxPoint2DInt* pt )const = 0;
  153. virtual void Transform( wxRect2DInt* r ) const;
  154. virtual wxPoint2DInt Transform( const wxPoint2DInt &pt ) const;
  155. diff -ur wxPythonSrc-2.4.2.4_orig/include/wx/list.h wxPythonSrc-2.4.2.4/include/wx/list.h
  156. --- wxPythonSrc-2.4.2.4_orig/include/wx/list.h 2002-10-18 20:32:52.000000000 +0200
  157. +++ wxPythonSrc-2.4.2.4/include/wx/list.h 2005-09-11 02:41:02.000000000 +0200
  158. @@ -384,6 +384,7 @@
  159. T *data = (T *)NULL, \
  160. const wxListKey& key = wxDefaultListKey) \
  161. : wxNodeBase(list, previous, next, data, key) { } \
  162. + virtual ~nodetype() {}; \
  163. \
  164. nodetype *GetNext() const \
  165. { return (nodetype *)wxNodeBase::GetNext(); } \
  166. @@ -410,6 +411,7 @@
  167. \
  168. name& operator=(const name& list) \
  169. { (void) wxListBase::operator=(list); return *this; } \
  170. + virtual ~name() {}; \
  171. \
  172. nodetype *GetFirst() const \
  173. { return (nodetype *)wxListBase::GetFirst(); } \
  174. diff -ur wxPythonSrc-2.4.2.4_orig/include/wx/notebook.h wxPythonSrc-2.4.2.4/include/wx/notebook.h
  175. --- wxPythonSrc-2.4.2.4_orig/include/wx/notebook.h 2003-06-03 23:11:56.000000000 +0200
  176. +++ wxPythonSrc-2.4.2.4/include/wx/notebook.h 2005-09-11 02:41:02.000000000 +0200
  177. @@ -193,6 +193,7 @@
  178. m_nSel = nSel;
  179. m_nOldSel = nOldSel;
  180. }
  181. + virtual ~wxNotebookEvent() {};
  182. // accessors
  183. // the currently selected page (-1 if none)
  184. diff -ur wxPythonSrc-2.4.2.4_orig/include/wx/radiobox.h wxPythonSrc-2.4.2.4/include/wx/radiobox.h
  185. --- wxPythonSrc-2.4.2.4_orig/include/wx/radiobox.h 2003-06-02 22:40:21.000000000 +0200
  186. +++ wxPythonSrc-2.4.2.4/include/wx/radiobox.h 2005-09-11 02:41:02.000000000 +0200
  187. @@ -35,6 +35,7 @@
  188. class WXDLLEXPORT wxRadioBoxBase
  189. {
  190. public:
  191. + virtual ~wxRadioBoxBase() {};
  192. // selection
  193. virtual void SetSelection(int n) = 0;
  194. virtual int GetSelection() const = 0;
  195. diff -ur wxPythonSrc-2.4.2.4_orig/include/wx/statline.h wxPythonSrc-2.4.2.4/include/wx/statline.h
  196. --- wxPythonSrc-2.4.2.4_orig/include/wx/statline.h 2001-06-26 22:59:07.000000000 +0200
  197. +++ wxPythonSrc-2.4.2.4/include/wx/statline.h 2005-09-11 02:41:02.000000000 +0200
  198. @@ -39,6 +39,7 @@
  199. public:
  200. // constructor
  201. wxStaticLineBase() { }
  202. + virtual ~wxStaticLineBase() {};
  203. // is the line vertical?
  204. bool IsVertical() const { return (GetWindowStyle() & wxLI_VERTICAL) != 0; }
  205. diff -ur wxPythonSrc-2.4.2.4_orig/src/common/dircmn.cpp wxPythonSrc-2.4.2.4/src/common/dircmn.cpp
  206. --- wxPythonSrc-2.4.2.4_orig/src/common/dircmn.cpp 2002-07-27 21:39:04.000000000 +0200
  207. +++ wxPythonSrc-2.4.2.4/src/common/dircmn.cpp 2005-09-11 02:41:02.000000000 +0200
  208. @@ -147,6 +147,7 @@
  209. {
  210. public:
  211. wxDirTraverserSimple(wxArrayString& files) : m_files(files) { }
  212. + virtual ~wxDirTraverserSimple() {};
  213. virtual wxDirTraverseResult OnFile(const wxString& filename)
  214. {
  215. diff -ur wxPythonSrc-2.4.2.4_orig/src/common/sckfile.cpp wxPythonSrc-2.4.2.4/src/common/sckfile.cpp
  216. --- wxPythonSrc-2.4.2.4_orig/src/common/sckfile.cpp 2002-01-05 23:11:03.000000000 +0100
  217. +++ wxPythonSrc-2.4.2.4/src/common/sckfile.cpp 2005-09-11 02:41:08.000000000 +0200
  218. @@ -9,7 +9,7 @@
  219. // Licence: wxWindows license
  220. /////////////////////////////////////////////////////////////////////////////
  221. #ifdef __GNUG__
  222. -#pragma implementation "sckfile.h"
  223. +#pragma implementation "file.h"
  224. #endif
  225. // For compilers that support precompilation, includes "wx.h".
  226. diff -ur wxPythonSrc-2.4.2.4_orig/src/common/xpmdecod.cpp wxPythonSrc-2.4.2.4/src/common/xpmdecod.cpp
  227. --- wxPythonSrc-2.4.2.4_orig/src/common/xpmdecod.cpp 2003-03-29 20:10:43.000000000 +0100
  228. +++ wxPythonSrc-2.4.2.4/src/common/xpmdecod.cpp 2005-09-11 02:41:02.000000000 +0200
  229. @@ -669,7 +669,7 @@
  230. wxChar key[64];
  231. const char *clr_def;
  232. bool hasMask;
  233. - wxXPMColourMapData clr_data;
  234. + wxXPMColourMapData clr_data = {0, 0, 0};
  235. wxXPMColourMap clr_tbl;
  236. /*
  237. @@ -712,7 +712,7 @@
  238. }
  239. else
  240. {
  241. - bool isNone;
  242. + bool isNone = false;
  243. if ( !GetRGBFromName(clr_def, &isNone,
  244. &clr_data.R, &clr_data.G, &clr_data.B) )
  245. {
  246. diff -ur wxPythonSrc-2.4.2.4_orig/src/unix/mimetype.cpp wxPythonSrc-2.4.2.4/src/unix/mimetype.cpp
  247. --- wxPythonSrc-2.4.2.4_orig/src/unix/mimetype.cpp 2003-04-08 23:58:38.000000000 +0200
  248. +++ wxPythonSrc-2.4.2.4/src/unix/mimetype.cpp 2005-09-11 02:41:02.000000000 +0200
  249. @@ -1580,7 +1580,7 @@
  250. {
  251. // now got a file we can write to ....
  252. wxMimeTypeCommands * entries = m_aEntries[index];
  253. - size_t iOpen;
  254. + size_t iOpen = 0;
  255. wxString sCmd = entries->GetCommandForVerb(_T("open"), &iOpen);
  256. wxString sTmp;