Explorar o código

warn correction

gcc warning: unused parameter removed for macro STBTT_free
johan %!s(int64=11) %!d(string=hai) anos
pai
achega
816ea35435
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      stb_truetype.h

+ 1 - 1
stb_truetype.h

@@ -378,7 +378,7 @@ int main(int arg, char **argv)
    #ifndef STBTT_malloc
    #ifndef STBTT_malloc
    #include <stdlib.h>
    #include <stdlib.h>
    #define STBTT_malloc(x,u)  ((void)(u),malloc(x))
    #define STBTT_malloc(x,u)  ((void)(u),malloc(x))
-   #define STBTT_free(x,u)    free(x)
+   #define STBTT_free(x,u)    ((void)(u),free(x))
    #endif
    #endif
 
 
    #ifndef STBTT_assert
    #ifndef STBTT_assert