Skip to content

Commit

Permalink
CImg<T>::save_webp(): Mark argument 'quality' as unused when 'cimg_us…
Browse files Browse the repository at this point in the history
…e_webp' not defined (avoid compiler warnings).
  • Loading branch information
dtschump committed Sep 19, 2024
1 parent d0513d3 commit 33f0b50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CImg.h
Original file line number Diff line number Diff line change
Expand Up @@ -60301,6 +60301,7 @@ namespace cimg_library {
"save_webp(): WebP only supports (A)RGB colorspace.",
cimg_instance);
#ifndef cimg_use_webp
cimg::unused(quality);
return save_other(filename);
#else
CImg<uint8_t> rgbaBuffer(size());
Expand Down

0 comments on commit 33f0b50

Please sign in to comment.