Skip to content

Commit

Permalink
Fixed building on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 4, 2020
1 parent 5bc30c1 commit 3ea512b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions SDL_ttf.c
Expand Up @@ -875,6 +875,10 @@ static int Get_Alignement()
#endif
}

#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-value"
#endif
#define BUILD_RENDER_LINE(NAME, IS_BLENDED, IS_BLENDED_OPAQUE, WB, WP, WS, BLIT_GLYPH_BLENDED_OPAQUE_OPTIM, BLIT_GLYPH_BLENDED_OPTIM, BLIT_GLYPH_OPTIM) \
\
static SDL_INLINE \
Expand Down Expand Up @@ -1009,6 +1013,10 @@ BUILD_RENDER_LINE(8_Blended_SP , 1, 0, 0 , PIXMAP, SUBPIX,
BUILD_RENDER_LINE(8_Blended_Opaque_SP , 1, 1, 0 , PIXMAP, SUBPIX, BG_Blended_Opaque , , )
#endif

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif

static SDL_INLINE int Render_Line(const render_mode_t render_mode, int subpixel, TTF_Font *font, SDL_Surface *textbuf, int xstart, int ystart, Uint8 fg_alpha)
{
/* Render line (pos_buf) to textbuf at (xstart, ystart) */
Expand Down

0 comments on commit 3ea512b

Please sign in to comment.