[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:
Khaled Hosny committed 2026-03-12 17:36:39 +02:00
1 parent a79a8257bb
commit 3e2897e631
1 file changed
+1 -4
+1 -4
View File
@@ -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
}