avif: fix build warnings in new code

master
Mike Frysinger 2021-03-04 21:34:16 -05:00
parent f2aa2836ed
commit 122799495c
2 changed files with 2 additions and 3 deletions

View File

@ -477,7 +477,6 @@ static avifBool _gdImageAvifCtx(gdImagePtr im, gdIOCtx *outfile, int quality, in
uint32_t val;
uint8_t *p;
uint8_t a;
int x, y;
if (im == NULL)

View File

@ -28,8 +28,8 @@ int main() {
char filePath[MAX_FILEPATH_LENGTH], pngFilePath[MAX_FILEPATH_LENGTH], avifFilePath[MAX_FILEPATH_LENGTH];
char errMsg[MAX_FILEPATH_LENGTH + 100];
const int filesCount = 4;
const char *filenames[filesCount] = {"baboon", "dice_with_alpha", "plum_blossom_12bit", "sunset"};
static const char * const filenames[] = {"baboon", "dice_with_alpha", "plum_blossom_12bit", "sunset"};
const int filesCount = sizeof(filenames) / sizeof(filenames[0]);
for (int i = 0; i < filesCount; i++) {