gcc7.patch 841 B

1234567891011121314151617181920212223242526
  1. From: Markus Koschany <apo@debian.org>
  2. Date: Fri, 18 Aug 2017 23:24:22 +0200
  3. Subject: gcc7
  4. Fix FTBFS with GCC 7.
  5. Bug-Debian: https://bugs.debian.org/871218
  6. Forwarded: no
  7. ---
  8. source/ref_gl/r_iqm.c | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. diff --git a/source/ref_gl/r_iqm.c b/source/ref_gl/r_iqm.c
  11. index ba5d178..cb3d2da 100644
  12. --- a/source/ref_gl/r_iqm.c
  13. +++ b/source/ref_gl/r_iqm.c
  14. @@ -1263,7 +1263,7 @@ void IQM_Vlight (vec3_t baselight, mnormal_t *normal, vec3_t angles, vec3_t ligh
  15. void R_Mesh_SetupShell (int shell_skinnum, qboolean ragdoll, qboolean using_varray, vec3_t lightcolor);
  16. void R_Mesh_SetupGLSL (int skinnum, rscript_t *rs, vec3_t lightcolor);
  17. -inline void IQM_DrawVBO (qboolean tangents)
  18. +void IQM_DrawVBO (qboolean tangents)
  19. {
  20. qglEnableClientState( GL_VERTEX_ARRAY );
  21. GL_BindVBO(vbo_xyz);