Re: new compiler warnings in freetype 2.10.2 32-bit

2020-07-24 Thread Werner LEMBERG
> A better answer is to actually get rid of strcpy() / strcat() / > sprintf() because there will always be compilers complaining about > them. > > Here's a patch that does that for freetype2-demos, please take a > look. Applied with massaging and splitting into smaller chunks, thanks! I've also

Re: new compiler warnings in freetype 2.10.2 32-bit

2020-07-24 Thread David Turner
Le ven. 24 juil. 2020 à 05:58, Vincent Torri a écrit : > hello > > some comments: > > strcasecmp does not exist when compiling with Visual Studio (_stricmp > does though and is doing the same job). mingw-w64 use a #define for > that.Why not adding ft_strcasecmp like ft_strdup ? > > note that usin

Re: new compiler warnings in freetype 2.10.2 32-bit

2020-07-24 Thread Werner LEMBERG
> strcasecmp does not exist when compiling with Visual Studio > (_stricmp does though and is doing the same job). mingw-w64 uses a > #define for that. Why not adding ft_strcasecmp like ft_strdup ? There is already #ifdef _WIN32 #define strcasecmp _stricmp #endif in `ftcommon.c`...

Re: new compiler warnings in freetype 2.10.2 32-bit

2020-07-23 Thread Vincent Torri
hello some comments: strcasecmp does not exist when compiling with Visual Studio (_stricmp does though and is doing the same job). mingw-w64 use a #define for that.Why not adding ft_strcasecmp like ft_strdup ? note that using strdup with Visual Studio and passing _CRT_NONSTDC_NO_DEPRECATE remove

Re: new compiler warnings in freetype 2.10.2 32-bit

2020-07-23 Thread David Turner
A better answer is to actually get rid of strcpy() / strcat() / sprintf() because there will always be compilers complaining about them. Here's a patch that does that for freetype2-demos, please take a look. Le jeu. 23 juil. 2020 à 13:16, Werner LEMBERG a écrit : > > There seems to be a new war

Re: new compiler warnings in freetype 2.10.2 32-bit

2020-07-23 Thread Werner LEMBERG
> There seems to be a new warning in 2.10.2 (compared to 2.10.1) when > compiling for 32-bit: [...] Fixed in git, thanks. > Also have had a bunch of strncat related warning (probably gcc 1 specific, or > some compiler switch specific) in ft2-demos, for a while: > > === > inlined from 'RunIns

new compiler warnings in freetype 2.10.2 32-bit

2020-07-21 Thread Hin-Tak Leung via FreeType development
Hi, There seems to be a new warning in 2.10.2 (compared to 2.10.1) when compiling for 32-bit: === freetype-2.10.2/src/sfnt/sfwoff2.c:327:39: warning: passing argument 3 of 'BrotliDecoderDecompress' from incompatible pointer type [-Wincompatible-pointer-types] 327 |