Skip to content

Commit

Permalink
Mac: fix compile warnings caused by upgrade to C++11
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Fenton committed Mar 31, 2021
1 parent 7710c0f commit 661983a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/dhrystone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
4 changes: 4 additions & 0 deletions client/dhrystone.h
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
6 changes: 3 additions & 3 deletions clientgui/sg_PanelBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions clientscr/Mac_Saver_Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 661983a

Please sign in to comment.