mirror of https://github.com/encounter/SDL.git
Static analysis fix: "Value stored to 'p' is never read"
This commit is contained in:
parent
7b893acdc1
commit
faaaf6c572
|
@ -99,12 +99,11 @@ static void
|
||||||
SDL_FillRect1SSE(Uint8 *pixels, int pitch, Uint32 color, int w, int h)
|
SDL_FillRect1SSE(Uint8 *pixels, int pitch, Uint32 color, int w, int h)
|
||||||
{
|
{
|
||||||
int i, n;
|
int i, n;
|
||||||
Uint8 *p = NULL;
|
|
||||||
|
|
||||||
SSE_BEGIN;
|
SSE_BEGIN;
|
||||||
while (h--) {
|
while (h--) {
|
||||||
|
Uint8 *p = pixels;
|
||||||
n = w;
|
n = w;
|
||||||
p = pixels;
|
|
||||||
|
|
||||||
if (n > 63) {
|
if (n > 63) {
|
||||||
int adjust = 16 - ((uintptr_t)p & 15);
|
int adjust = 16 - ((uintptr_t)p & 15);
|
||||||
|
@ -118,7 +117,6 @@ SDL_FillRect1SSE(Uint8 *pixels, int pitch, Uint32 color, int w, int h)
|
||||||
if (n & 63) {
|
if (n & 63) {
|
||||||
int remainder = (n & 63);
|
int remainder = (n & 63);
|
||||||
SDL_memset(p, color, remainder);
|
SDL_memset(p, color, remainder);
|
||||||
p += remainder;
|
|
||||||
}
|
}
|
||||||
pixels += pitch;
|
pixels += pitch;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue