avif: fix build warnings in new code
parent
f2aa2836ed
commit
122799495c
|
@ -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)
|
||||
|
|
|
@ -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++) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue