Make gl_rsurf.c compile without warnings with "gcc (GCC) 4.4.5 20101112 (Red Hat 4.4.5-2)".

This commit is contained in:
Sander van Dijk 2012-01-19 20:44:26 +01:00 committed by Bill Currie
parent d8432e78bb
commit 8e6c3f7bf8

View file

@ -68,7 +68,8 @@ instsurf_t **sky_chain_tail;
#define CHAIN_SURF_F2B(surf,chain) \
do { \
instsurf_t *inst = (surf)->instsurf; \
if (!inst) (surf)->tinst = inst = get_instsurf (); \
if (__builtin_expect(!inst, 1)) \
(surf)->tinst = inst = get_instsurf (); \
inst->surface = (surf); \
*(chain##_tail) = inst; \
(chain##_tail) = &inst->tex_chain; \
@ -78,7 +79,8 @@ instsurf_t **sky_chain_tail;
#define CHAIN_SURF_B2F(surf,chain) \
do { \
instsurf_t *inst = (surf)->instsurf; \
if (!inst) (surf)->tinst = inst = get_instsurf (); \
if (__builtin_expect(!inst, 1)) \
(surf)->tinst = inst = get_instsurf (); \
inst->surface = (surf); \
inst->tex_chain = (chain); \
(chain) = inst; \
@ -387,7 +389,7 @@ R_DrawWaterSurfaces (void)
}
}
static inline void
static void
DrawTextureChains (int disable_blend, int do_bind)
{
int i;