Static analysis fix: Value stored to '[bcd]' is never read.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 19 Mar 2014 16:55:38 -0400
changeset 86423506de54b829
parent 8641 c576c104923b
child 8643 a0500498afee
Static analysis fix: Value stored to '[bcd]' is never read.
src/cpuinfo/SDL_cpuinfo.c
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Wed Mar 19 16:52:26 2014 -0400
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Wed Mar 19 16:55:38 2014 -0400
     1.3 @@ -408,15 +408,17 @@
     1.4              SDL_CPUType[i++] = (char)(b & 0xff); b >>= 8;
     1.5              SDL_CPUType[i++] = (char)(b & 0xff); b >>= 8;
     1.6              SDL_CPUType[i++] = (char)(b & 0xff); b >>= 8;
     1.7 -            SDL_CPUType[i++] = (char)(b & 0xff); b >>= 8;
     1.8 +            SDL_CPUType[i++] = (char)(b & 0xff);
     1.9 +
    1.10              SDL_CPUType[i++] = (char)(d & 0xff); d >>= 8;
    1.11              SDL_CPUType[i++] = (char)(d & 0xff); d >>= 8;
    1.12              SDL_CPUType[i++] = (char)(d & 0xff); d >>= 8;
    1.13 -            SDL_CPUType[i++] = (char)(d & 0xff); d >>= 8;
    1.14 +            SDL_CPUType[i++] = (char)(d & 0xff);
    1.15 +
    1.16              SDL_CPUType[i++] = (char)(c & 0xff); c >>= 8;
    1.17              SDL_CPUType[i++] = (char)(c & 0xff); c >>= 8;
    1.18              SDL_CPUType[i++] = (char)(c & 0xff); c >>= 8;
    1.19 -            SDL_CPUType[i++] = (char)(c & 0xff); c >>= 8;
    1.20 +            SDL_CPUType[i++] = (char)(c & 0xff);
    1.21          }
    1.22          if (!SDL_CPUType[0]) {
    1.23              SDL_strlcpy(SDL_CPUType, "Unknown", sizeof(SDL_CPUType));