evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ma / maelstrom / c++17-fixes.diff
blobfa43edfb67475e1890d46f3ebb540227eabf1a80
1 diff --git a/fastrand.cpp b/fastrand.cpp
2 index 3714f02..d1cf224 100644
3 --- a/fastrand.cpp
4 +++ b/fastrand.cpp
5 @@ -30,10 +30,10 @@ Uint32 GetRandSeed(void)
6 Uint16 FastRandom(Uint16 range)
8 Uint16 result;
9 - register Uint32 calc;
10 - register Uint32 regD0;
11 - register Uint32 regD1;
12 - register Uint32 regD2;
13 + Uint32 calc;
14 + Uint32 regD0;
15 + Uint32 regD1;
16 + Uint32 regD2;
18 #ifdef SERIOUS_DEBUG
19 fprintf(stderr, "FastRandom(%hd) Seed in: %lu ", range, randomSeed);
20 diff --git a/screenlib/SDL_FrameBuf.cpp b/screenlib/SDL_FrameBuf.cpp
21 index 2f7b44c..c8e394b 100644
22 --- a/screenlib/SDL_FrameBuf.cpp
23 +++ b/screenlib/SDL_FrameBuf.cpp
24 @@ -555,7 +555,7 @@ static inline void memswap(Uint8 *dst, Uint8 *src, Uint8 len)
26 #else
27 /* Swap two buffers using a temporary variable */
28 - register Uint8 tmp;
29 + Uint8 tmp;
31 while ( len-- ) {
32 tmp = *dst;