G'day,
Attached are the warnings for ftgl-r901, under gcc 12.
--
cheers,
sur-behoffski (Brenton Hoff)
programmer, Grouse Software
* No diagnostics for:
#include expects "FILENAME" or <FILENAME>
missing binary operator before token "("
the comparison will always evaluate as 'true' for the address of <VAR> will
never be NULL [-Waddress]
<FUNC> forming offset <BYTECOUNT1> is out of the bounds [<BYTECOUNT2>,
<BYTECOUNT3>] of object <VAR> with type <TYPE> [-Warray-bounds]
array subscript <TYPE1> is partly outside array bounds of <TYPE2>
[-Warray-bounds]
argument <NUM> of type <TYPE> with mismatched bound [-Warray-parameter=]
argument <NUM> of type <TYPE1> {aka <TYPE2>} with mismatched bound
[-Warray-parameter=]
<FUNC> clearing an object of non-trivial type <TYPE1> {aka <TYPE2>}; use
assignment or value-initialization instead [-Wclass-memaccess]
<FUNC> clearing an object of type <TYPE1> {aka <TYPE2>} with no trivial
copy-assignment; use assignment or value-initialization instead
[-Wclass-memaccess]
<FUNC> moving an object of non-trivially copyable type <TYPE1> {aka
<TYPE2>}; use 'new' and 'delete' instead [-Wclass-memaccess]
<FUNC> writing to an object of type <TYPE> with no trivial copy-assignment;
use copy-assignment or copy-initialization instead [-Wclass-memaccess]
converting to non-pointer type <TYPE> from NULL [-Wconversion-null]
suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
<FUNC> is deprecated [-Wdeprecated-declarations]
<FUNC1> is deprecated: Use <FUNC2> instead [-Wdeprecated-declarations]
assignment discards <TYPE> qualifier from pointer target type
[-Wdiscarded-qualifiers]
comparison between <ENUM1> and <ENUM2> [-Wenum-compare]
comparison between <ENUM1> and <ENUM2> {aka <ENUM3>} [-Wenum-compare]
comparison between <ENUM1> {aka <ENUM2>} and <ENUM3> {aka <ENUM4>}
[-Wenum-compare]
format <FMT> expects argument of type <TYPE1>, but argument <NUM> has type
<TYPE2> [-Wformat=]
format <FMT> expects argument of type <TYPE1>, but argument <NUM> has type
<TYPE2> {aka <TYPE3>} [-Wformat=]
too many arguments for format [-Wformat-extra-args]
<FUNC> may write a terminating nul past the end of the destination
[-Wformat-overflow=]
<DIRECTIVE> directive writing 1 byte into a region of size between 0 and
<BYTECOUNT> [-Wformat-overflow=]
<DIRECTIVE> directive writing <BYTECOUNT1> bytes into a region of size
between <BYTECOUNT2> and <BYTECOUNT3> [-Wformat-overflow=]
<DIRECTIVE> directive writing up to <BYTECOUNT1> bytes into a region of
size between <BYTECOUNT2> and <BYTECOUNT3> [-Wformat-overflow=]
<DIRECTIVE> directive writing between <BYTECOUNT1> and <BYTECOUNT2> bytes
into a region of size between <BYTECOUNT3> and <BYTECOUNT4> [-Wformat-overflow=]
<DIRECTIVE> directive writing up to <BYTECOUNT1> bytes into a region of
size <BYTECOUNT2> [-Wformat-overflow=]
<DIRECTIVE> directive output may be truncated writing <BYTECOUNT1> bytes
into a region of size between <BYTECOUNT2> and <BYTECOUNT3>
[-Wformat-truncation=]
<FUNC> output may be truncated before the last format character
[-Wformat-truncation=]
format not a string literal and no format arguments [-Wformat-security]
<DIRECTIVE> directive output may be truncated writing up to <BYTECOUNT1>
bytes into a region of size <BYTECOUNT2> [-Wformat-truncation=]
<DIRECTIVE> directive output may be truncated writing up to <BYTECOUNT1>
bytes into a region of size between <BYTECOUNT2> and <BYTECOUNT3>
[-Wformat-truncation=]
implicit declaration of function <FUNC> [-Wimplicit-function-declaration]
implicit declaration of function <FUNC1>; did you mean <FUNC2>?
[-Wimplicit-function-declaration]
assignment from incompatible pointer type [-Wincompatible-pointer-types]
assignment to <TYPE1> from incompatible pointer type <TYPE2>
[-Wincompatible-pointer-types]
assignment to <TYPE1> {aka <TYPE2>} from incompatible pointer type <TYPE3>
{aka <TYPE4>} [-Wincompatible-pointer-types]
assignment to <TYPE1> from incompatible pointer type <TYPE2> {aka <TYPE3>}
[-Wincompatible-pointer-types]
initialization from incompatible pointer type [-Wincompatible-pointer-types]
initialization of <TYPE1> {aka <TYPE2>} from incompatible pointer type
<TYPE3> {aka <TYPE4>} [-Wincompatible-pointer-types]
passing argument <NUM> of <FUNC> from incompatible pointer type
[-Wincompatible-pointer-types]
'*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
cast to pointer from integer of different size [-Wint-to-pointer-cast]
<VAR> is usually a function [-Wmain]
<VAR> may be used uninitialized [-Wmaybe-uninitialized]
<VAR> may be used uninitialized in this function [-Wmaybe-uninitialized]
missing braces around initializer [-Wmissing-braces]
the use of `tmpnam' is dangerous, better use `mkstemp'
suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
suggest parentheses around assignment used as truth value [-Wparentheses]
suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
suggest parentheses around '&&' within '||' [-Wparentheses]
comparison between pointer and zero character constant [-Wpointer-compare]
cast from pointer to integer of different size [-Wpointer-to-int-cast]
ISO C++17 does not allow 'register' storage class specifier [-Wregister]
<FUNC> argument <NUM> overlaps destination object <VAR> [-Wrestrict]
passing argument <NUM1> to restrict-qualified parameter aliases with
argument <NUM2> [-Wrestrict]
no return statement in function returning non-void [-Wreturn-type]
control reaches end of non-void function [-Wreturn-type]
case value <LABEL> not in enumerated type <ENUM> [-Wswitch]
this 'else' clause does not guard... [-Wmisleading-indentation]
this 'for' clause does not guard... [-Wmisleading-indentation]
this 'if' clause does not guard... [-Wmisleading-indentation]
this 'while' clause does not guard... [-Wmisleading-indentation]
comparison between signed and unsigned integer expressions [-Wsign-compare]
comparison of integer expressions of different signedness: <TYPE1> and
<TYPE2> {aka <TYPE3>} [-Wsign-compare]
<FUNC> accessing <BYTECOUNT1> bytes in a region of size <BYTECOUNT2>
[-Wstringop-overflow=]
<FUNC> specified bound depends on the length of the source argument
[-Wstringop-overflow=]
<FUNC> specified bound depends on the length of the source argument
[-Wstringop-truncation]
<FUNC> output truncated before terminating nul copying <BYTECOUNT> bytes
from a string of the same length [-Wstringop-truncation]
<FUNC> specified bound <BYTECOUNT> equals destination size
[-Wstringop-truncation]
case value <LABEL> not in enumerated type <ENUM1> {aka <ENUM2>} [-Wswitch]
dereferencing type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]
enumeration value <ENUM> not handled in switch [-Wswitch]
<EXPRESSION> is used uninitialized in this function [-Wuninitialized]
<VAR> is used uninitialized [-Wuninitialized]
ignoring #pragma omp critical [-Wunknown-pragmas]
ignoring #pragma omp for [-Wunknown-pragmas]
ignoring #pragma omp parallel [-Wunknown-pragmas]
ignoring #pragma omp section [-Wunknown-pragmas]
ignoring #pragma warning [-Wunknown-pragmas]
ignoring <PRAGMA> [-Wunknown-pragmas]
<VAR> defined but not used [-Wunused-const-variable=]
<FUNC> declared <TYPE> but never defined [-Wunused-function]
<FUNC> defined but not used [-Wunused-function]
label <LABEL> defined but not used [-Wunused-label]
ignoring return value of <FUNC>, declared with attribute warn_unused_result
[-Wunused-result]
ignoring return value of <FUNC> declared with attribute <ATTRIBUTE>
[-Wunused-result]
statement with no effect [-Wunused-value]
value computed is not used [-Wunused-value]
<VAR> defined but not used [-Wunused-variable]
unused variable <VAR> [-Wunused-variable]
pointer <VAR> used after <FUNC> [-Wuse-after-free]
ISO C++ forbids converting a string constant to <TYPE> [-Wwrite-strings]
deprecated conversion from string constant to <TYPE> [-Wwrite-strings]
(End of list.)
* Lines that look like warning diagnostics, but we're not sure:
FTFont/FTFontImpl.h:134: ' 'bool FTFontImpl::useBlending' [-Wreorder]'
FTFont/FTFont.cpp:255: ' when initialized here [-Wreorder]'
(End of list.)
<VAR> will be initialized after [-Wreorder]:
FTFont/FTFontImpl.h:170:27: 'FTFontImpl::glyphList'
comparison of integer expressions of different signedness: <TYPE1> and <TYPE2>
[-Wsign-compare]:
FTGlyph/FTBufferGlyph.cpp:100:26: 'int' 'unsigned int'
FTGlyph/FTBufferGlyph.cpp:105:30: 'int' 'unsigned int'
variable <VAR> set but not used [-Wunused-but-set-variable]:
FTContour.cpp:172:16: 'b'
FTGlyph/FTExtrudeGlyph.cpp:205:25: 'pt'
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users