harfbuzz/util
Khaled Hosny 00060d99f3 [hb-cairo] Silence warning when building with FreeType
In file included from ../util/hb-view.cc:33:
In file included from ../util/view-cairo.hh:32:
../util/helper-cairo.hh:102:7: warning: variable 'cairo_face' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
  if (use_hb_draw)
      ^~~~~~~~~~~
../util/helper-cairo.hh:129:64: note: uninitialized use occurs here
  cairo_scaled_font_t *scaled_font = cairo_scaled_font_create (cairo_face,
                                                               ^~~~~~~~~~
../util/helper-cairo.hh:102:3: note: remove the 'if' if its condition is always true
  if (use_hb_draw)
  ^~~~~~~~~~~~~~~~
../util/helper-cairo.hh:101:32: note: initialize the variable 'cairo_face' to silence this warning
  cairo_font_face_t *cairo_face;
                               ^
                                = nullptr

We know that cairo_face will always be assigned since use_hb_draw will
always be true, but the compiler does not know that.
2022-12-30 22:55:56 +02:00
..
Makefile.am [hb-view] Fix autotools build 2022-12-26 17:01:08 -07:00
Makefile.sources Fix the autotools build 2022-12-27 08:37:46 -05:00
ansi-print.hh [view] Clean up includes 2022-12-29 21:01:16 -07:00
batch.hh [util/hb-subset] Print error and suggest filing github issue if operation fails 2021-08-29 09:46:42 -06:00
face-options.hh [util/hb-subset] Pre-parse font-face so we can use it during main parsing 2021-08-12 13:00:28 -06:00
font-options.hh view: Add a --font-palette option 2022-12-23 13:37:59 -07:00
hb-fc-list.c minor spacing tweak 2020-07-29 08:44:23 +04:30
hb-fc.cc Turn 8 spaces to tab across the project 2019-08-27 02:40:41 +04:30
hb-fc.h [utils] Add hb-fc-list 2015-04-09 19:16:57 -07:00
hb-ot-shape-closure.cc [util/hb-ot-shape-closure] Fix showing glyph names 2022-07-18 12:23:57 -06:00
hb-shape.cc [hb-shape] Move shape_output_t into separate file 2022-07-18 12:17:08 -06:00
hb-subset.cc [subset] don't segfault when --help-all is specified w/ instancing options. 2022-12-19 16:02:05 -07:00
hb-view.cc [util] Add --batch to hb-view / hb-ot-shape-closure 2021-08-12 10:39:46 -06:00
helper-cairo-ansi.hh [chafa] Residual 2022-12-29 20:41:55 -07:00
helper-cairo-ft.hh [view] Streamline cairo-ft face lifecycle management 2022-12-29 18:33:12 -07:00
helper-cairo.hh [hb-cairo] Silence warning when building with FreeType 2022-12-30 22:55:56 +02:00
main-font-text.hh [util] Rename template typenames to avoid clashing with actual types 2022-02-18 12:29:14 -06:00
meson.build wip: Make hb-view use hb-cairo 2022-12-26 17:01:08 -07:00
options.hh [util] Centralize includes again 2022-12-29 21:07:38 -07:00
output-options.hh [util/hb-subset] Move output-file validation code into post_parse 2021-08-11 20:22:03 -06:00
shape-consumer.hh [util] Improve --glyphs 2022-12-23 13:31:48 -07:00
shape-format.hh [util] Move shape format options into shape-format.hh 2021-08-06 23:30:55 -06:00
shape-options.hh [util] Fix vertical positioning with --glyphs 2022-12-23 13:37:38 -07:00
shape-output.hh [hb-shape] Move shape_output_t into separate file 2022-07-18 12:17:08 -06:00
text-options.hh [util] Accept | as delimiter in Unicode parsing 2022-05-31 04:09:59 -06:00
view-cairo.hh [view-cairo] Minor subpixel-bits 2022-12-29 18:19:06 -07:00
view-options.hh [util] Move view options into view-options.hh 2021-08-06 23:14:30 -06:00