mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 04:21:24 +00:00
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:
parent
94eb6389d4
commit
7502836378
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue