mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 16:01:07 +01:00
[hb-raster] Fix building with PNG disabled
In file included from ../util/hb-raster.cc:30:
../util/raster-output.hh:828:16: error: a type specifier is required for all declarations
828 | HB_UNUSED (img);
| ^
../util/raster-output.hh:829:16: error: a type specifier is required for all declarations
829 | HB_UNUSED (protocol);
| ^
2 errors generated.
This commit is contained in:
1 parent
a79a8257bb
commit
3e2897e631
1 file changed
+1
-4
@@ -798,7 +798,7 @@ struct raster_output_t : output_options_t<true>, view_options_t
|
||||
hb_blob_destroy (blob);
|
||||
}
|
||||
|
||||
void write_png (hb_raster_image_t *img, helper_image_protocol_t protocol)
|
||||
void write_png (hb_raster_image_t *img HB_UNUSED, helper_image_protocol_t protocol HB_UNUSED)
|
||||
{
|
||||
#ifdef HAVE_PNG
|
||||
hb_raster_image_t *png_img = img;
|
||||
@@ -824,9 +824,6 @@ struct raster_output_t : output_options_t<true>, view_options_t
|
||||
hb_blob_destroy (blob);
|
||||
if (png_img != img)
|
||||
hb_raster_image_destroy (png_img);
|
||||
#else
|
||||
HB_UNUSED (img);
|
||||
HB_UNUSED (protocol);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user