diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2026-06-01 09:52:48 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2026-06-01 09:55:54 -0700 |
| commit | 7502836378be1610fa6db4541865c06a425491e3 (patch) | |
| tree | 4cacb0b36fe220084ec3ec77de4213c3e351b844 /src | |
| parent | 94eb6389d403eb1b71a81ecdc3b8416cf5f850d6 (diff) | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispextern.h | 2 | ||||
| -rw-r--r-- | src/ftfont.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index b40bcc8219b..357504dd989 100644 --- a/src/dispextern.h +++ b/src/dispextern.h @@ -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 diff --git a/src/ftfont.c b/src/ftfont.c index 44c22d359b5..d16831fd69f 100644 --- a/src/ftfont.c +++ b/src/ftfont.c @@ -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) { |
