G'day,

Attached are the warnings for pdflib7-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 "("
    <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 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]
    <VAR> will be initialized after [-Wreorder]
    <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 '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> [-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]
    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]
    <FUNC> declared <TYPE> but never defined [-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]
    ISO C++ forbids converting a string constant to <TYPE> [-Wwrite-strings]
    deprecated conversion from string constant to <TYPE> [-Wwrite-strings]
(End of list.)


the comparison will always evaluate as 'true' for the address of <VAR> will 
never be NULL [-Waddress]:
    pdcore/pc_core.c:968:38: 'apiname'


<DIRECTIVE> directive writing up to <BYTECOUNT1> bytes into a region of size 
<BYTECOUNT2> [-Wformat-overflow=]:
    pdcore/pc_core.c:982:39: '%s' '10239' '10234'


this 'if' clause does not guard... [-Wmisleading-indentation]:
    pdflib/p_document.c:1118:5: ('if')
    pdflib/p_font.c:926:5: ('if')
    pdflib/p_font.c:1576:17: ('if')


<FUNC> specified bound <BYTECOUNT> equals destination size 
[-Wstringop-truncation]:
    pdflib/p_type1.c:380:9: '__builtin_strncpy' '4'


variable <VAR> set but not used [-Wunused-but-set-variable]:
    pdflib/p_afm.c:540:9: 'nalloc'
    pdflib/p_cid.c:44:14: 'isstdfont'
    pdflib/p_color.c:477:12: 'slot'
    pdflib/p_color.c:624:26: 'base'
    pdflib/p_document.c:1924:19: 'doc'
    pdflib/p_params.c:571:14: 'ppt'
    pdflib/p_template.c:101:14: 'verbose'
    pdflib/p_text.c:2587:14: 'hasfitbox'
    pdflib/p_truetype.c:34:12: 'kbfilesize'
    pdflib/p_truetype.c:39:25: 'ev'


<VAR> defined but not used [-Wunused-const-variable=]:
    pdflib/p_page.c:1406:25: 'pdf_sepinfo_options'


<FUNC> defined but not used [-Wunused-function]:
    pdcore/pc_crypt.c:26:13: 'pdc_pd_crypt_c'
    pdcore/pc_scope.c:25:13: 'pdc_check_scope_core'


pointer <VAR> used after <FUNC> [-Wuse-after-free]:
    pdcore/pc_file.c:1164:5: 'fp' 'fclose'
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to