Skip to content

Commit

Permalink
Suppress compiler warning
Browse files Browse the repository at this point in the history
Some compilers give the warning:
  global.h:108:26: warning: statement with no effect [-Wunused-value]
  global.h:109:28: warning: statement with no effect [-Wunused-value]

This replaces the macro with a better no-op.
  • Loading branch information
wch committed Jan 8, 2020
1 parent c0e6d3a commit 000efae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ttf2pt1/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ extern int numglyphs;
# define DBG_TO_GLYPH(g) DISABLEDBG( strcmp( (g)->name, DBG_GLYPH ) )
# define DBG_FROM_GLYPH(g) ENABLEDBG(1)
#else
# define DBG_TO_GLYPH(g) (0)
# define DBG_FROM_GLYPH(g) (0)
# define DBG_TO_GLYPH(g) ((void)0)
# define DBG_FROM_GLYPH(g) ((void)0)
#endif

/* prototypes */
Expand Down

0 comments on commit 000efae

Please sign in to comment.