Skip to content

Commit

Permalink
jpg: fix a few -Wunused-parameter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Mar 26, 2024
1 parent 15f9976 commit 25e816f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/IMG_jpg.c
Expand Up @@ -664,12 +664,14 @@ void IMG_QuitJPG(void)
/* See if an image is contained in a data source */
int IMG_isJPG(SDL_IOStream *src)
{
(void)src;
return(0);
}

/* Load a JPEG type image from an SDL datasource */
SDL_Surface *IMG_LoadJPG_IO(SDL_IOStream *src)
{
(void)src;
return(NULL);
}

Expand Down Expand Up @@ -765,6 +767,8 @@ int IMG_SaveJPG(SDL_Surface *surface, const char *file, int quality)
int IMG_SaveJPG_IO(SDL_Surface *surface, SDL_IOStream *dst, int closeio, int quality)
{
int result = -1;
(void)surface;
(void)quality;

if (!dst) {
return IMG_SetError("Passed NULL dst");
Expand Down

0 comments on commit 25e816f

Please sign in to comment.