Skip to content

Commit

Permalink
Static analysis fix: "Value stored to 'p' is never read"
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 19, 2014
1 parent 7b893ac commit faaaf6c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/video/SDL_fillrect.c
Expand Up @@ -99,12 +99,11 @@ static void
SDL_FillRect1SSE(Uint8 *pixels, int pitch, Uint32 color, int w, int h)
{
int i, n;
Uint8 *p = NULL;


SSE_BEGIN;
while (h--) {
Uint8 *p = pixels;
n = w;
p = pixels;

if (n > 63) {
int adjust = 16 - ((uintptr_t)p & 15);
Expand All @@ -118,7 +117,6 @@ SDL_FillRect1SSE(Uint8 *pixels, int pitch, Uint32 color, int w, int h)
if (n & 63) {
int remainder = (n & 63);
SDL_memset(p, color, remainder);
p += remainder;
}
pixels += pitch;
}
Expand Down

0 comments on commit faaaf6c

Please sign in to comment.