mirror of https://github.com/BOINC/boinc.git
Mac: fix compile warnings caused by upgrade to C++11
This commit is contained in:
parent
7710c0fe6f
commit
661983a5d6
|
@ -94,7 +94,7 @@ int dhrystone(
|
|||
double benchtime;
|
||||
double Dhrystones_Per_Second;
|
||||
|
||||
register unsigned long Run_Index;
|
||||
REG unsigned long Run_Index;
|
||||
|
||||
|
||||
Next_Ptr_Glob = (Rec_Pointer) malloc (sizeof (Rec_Type));
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
|
||||
#ifdef __APPLE__
|
||||
#define REG
|
||||
#else
|
||||
#define REG register
|
||||
#endif
|
||||
|
||||
typedef enum {Ident_1, Ident_2, Ident_3, Ident_4, Ident_5} Enumeration;
|
||||
|
||||
|
|
|
@ -63,9 +63,9 @@ void CSimplePanelBase::MakeBGBitMap() {
|
|||
wxBitmap whiteBmp;
|
||||
wxImage bgImage;
|
||||
wxImage whiteImage;
|
||||
register unsigned char *bgImagePixels;
|
||||
register unsigned char *whitePixels;
|
||||
register int i, j, k;
|
||||
unsigned char *bgImagePixels;
|
||||
unsigned char *whitePixels;
|
||||
int i, j, k;
|
||||
CSimpleGUIPanel* backgroundPanel = (CSimpleGUIPanel*)GetParent();
|
||||
wxPen bgPen(*wxWHITE, 1, wxTRANSPARENT);
|
||||
wxBrush bgBrush(*wxWHITE);
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
// The declarations below must be kept in sync with
|
||||
// the corresponding ones in Mac_Saver_ModuleView.h
|
||||
#ifdef _DEBUG
|
||||
#undef _T
|
||||
#define _T(x) x
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue