> 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
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
> 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`...
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
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
> 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
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 |