rougier / freetype-gl

OpenGL text using one vertex buffer, one texture and FreeType
Other
1.65k stars 266 forks source link

warning: format specifies type 'int' but the argument has type 'size_t' #232

Open yurivict opened 3 years ago

yurivict commented 3 years ago

clang-10 complains:

/usr/ports/graphics/freetype-gl/work/freetype-gl-647b062/makefont.c:375:20: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
        font_size, atlas->width, atlas->height, atlas->depth);
                   ^~~~~~~~~~~~
/usr/ports/graphics/freetype-gl/work/freetype-gl-647b062/makefont.c:375:34: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
        font_size, atlas->width, atlas->height, atlas->depth);
                                 ^~~~~~~~~~~~~
/usr/ports/graphics/freetype-gl/work/freetype-gl-647b062/makefont.c:375:49: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
        font_size, atlas->width, atlas->height, atlas->depth);
                                                ^~~~~~~~~~~~
3 warnings generated.
rougier commented 3 years ago

Thanks. Can you make a PR to fix it?