Skip to content

Commit

Permalink
pixmap/png: shut up bogus GCC -Wclobber warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaricchi committed Jul 18, 2021
1 parent b4e0747 commit 5b5767a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pixmap/fileformats/png.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ static void px_png_save_apply_conversions(
}
}

DIAGNOSTIC_GCC(push)
DIAGNOSTIC_GCC(ignored "-Wclobbered")

static bool px_png_save(
SDL_RWops *stream, const Pixmap *src_pixmap, const PixmapSaveOptions *base_opts
) {
Expand Down Expand Up @@ -279,6 +282,8 @@ static bool px_png_save(
return !error;
}

DIAGNOSTIC_GCC(pop)

PixmapFileFormatHandler pixmap_fileformat_png = {
.probe = px_png_probe,
.load = px_png_load,
Expand Down

0 comments on commit 5b5767a

Please sign in to comment.