Pacify -Wuseless-cast if --enable-checking=all

Problem reported by Helmut Eller (Bug#81132#25).
* src/dispextern.h (IF_DEBUG): Omit cast that is useless if
the argument is already void.
* src/ftfont.c (adjust_anchor): Omit useless cast.
This commit is contained in:
Paul Eggert 2026-06-01 09:52:48 -07:00
parent 94eb6389d4
commit 7502836378
2 changed files with 2 additions and 2 deletions

View file

@ -259,7 +259,7 @@ enum window_part
/* Macros to include code only if GLYPH_DEBUG is defined. */
#ifdef GLYPH_DEBUG
#define IF_DEBUG(X) ((void) (X))
#define IF_DEBUG(X) do { (X); } while (false)
#else
#define IF_DEBUG(X) ((void) 0)
#endif

View file

@ -1989,7 +1989,7 @@ adjust_anchor (FT_Face ft_face, OTF_Anchor *anchor,
FT_Outline *outline;
int ap = anchor->f.f1.AnchorPoint;
FT_Load_Glyph (ft_face, (FT_UInt) code, FT_LOAD_MONOCHROME);
FT_Load_Glyph (ft_face, code, FT_LOAD_MONOCHROME);
outline = &ft_face->glyph->outline;
if (ap < outline->n_points)
{