[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
new compiler warnings in freetype 2.10.2 32-bit
From: |
Hin-Tak Leung |
Subject: |
new compiler warnings in freetype 2.10.2 32-bit |
Date: |
Tue, 21 Jul 2020 16:38:14 +0000 (UTC) |
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 | &uncompressed_size,
| ^~~~~~~~~~~~~~~~~~
| |
| FT_ULong * {aka long unsigned int
*}
===
Also have had a bunch of strncat related warning (probably gcc 10 specific, or
some compiler switch specific) in ft2-demos, for a while:
===
inlined from 'RunIns' at src/ttdebug.c:2105:11:
/usr/include/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk'
output may be truncated copying 31 bytes from a string of length 31
[-Wstringop-truncation]
136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest));
--
inlined from 'RunIns' at src/ttdebug.c:2105:11:
/usr/include/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk'
output may be truncated copying 8 bytes from a string of length 31
[-Wstringop-truncation]
136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest));
--
inlined from 'RunIns' at src/ttdebug.c:2105:11:
/usr/include/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk'
output may be truncated copying 8 bytes from a string of length 31
[-Wstringop-truncation]
136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest));
--
inlined from 'RunIns' at src/ttdebug.c:2105:11:
/usr/include/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk'
output may be truncated copying 8 bytes from a string of length 31
[-Wstringop-truncation]
136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest));
--
inlined from 'RunIns' at src/ttdebug.c:2105:11:
/usr/include/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk'
output may be truncated copying 8 bytes from a string of length 31
[-Wstringop-truncation]
136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest));
--
inlined from 'RunIns' at src/ttdebug.c:2105:11:
/usr/include/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk'
output may be truncated copying 8 bytes from a string of length 31
[-Wstringop-truncation]
136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest));
--
inlined from 'RunIns' at src/ttdebug.c:2105:11:
/usr/include/bits/string_fortified.h:136:10: warning: '__builtin___strncat_chk'
output may be truncated copying 8 bytes from a string of length 31
[-Wstringop-truncation]
136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest));
--
inlined from 'FTDemo_Install_Font' at src/ftcommon.c:534:5:
/usr/include/bits/string_fortified.h:106:10: warning: '__builtin___strncpy_chk'
specified bound depends on the length of the source argument
[-Wstringop-overflow=]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
--
===
Argh, that's just one line in ttdebug which generates multiple warnings, plus
another one in ftcommon.c
I haven't gotten round to look at either, just in case somebody are bothered
enough to have a look...
Hin-Tak
- new compiler warnings in freetype 2.10.2 32-bit,
Hin-Tak Leung <=