G'day,
Attached are the warnings for cd-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]
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]
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]
<DIRECTIVE> directive writing 1 byte into a region of size between 0 and
<BYTECOUNT> [-Wformat-overflow=]
<DIRECTIVE> directive writing up to <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 <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> {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]
'*' 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 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 '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> [-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]
enumeration value <ENUM> not handled in switch [-Wswitch]
<EXPRESSION> is used uninitialized in this function [-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]
variable <VAR> set but not used [-Wunused-but-set-variable]
<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]
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:
minizip/miniunzip.c:136: 'extra tokens at end of #ifdef directive'
(End of list.)
array subscript <TYPE1> is partly outside array bounds of <TYPE2>
[-Warray-bounds]:
drv/cddgn.c:329:23: 'long int[0]' 'float[1]'
<FUNC> is deprecated [-Wdeprecated-declarations]:
cairo/cdcaironative_gdk.c:55:5: 'gdk_screen_get_width'
cairo/cdcaironative_gdk.c:56:5: 'gdk_screen_get_height'
cairo/cdcaironative_gdk.c:57:5: 'gdk_screen_get_width_mm'
cairo/cdcaironative_gdk.c:58:5: 'gdk_screen_get_height_mm'
cairo/cdcaironative_gdk.c:206:3: 'gdk_screen_get_width_mm'
cairo/cdcaironative_gdk.c:207:3: 'gdk_screen_get_height_mm'
<FUNC1> is deprecated: Use <FUNC2> instead [-Wdeprecated-declarations]:
cairo/cdcaironative_gdk.c:27:5: 'gdk_visual_get_system'
'gdk_screen_get_system_visual'
<FUNC> may write a terminating nul past the end of the destination
[-Wformat-overflow=]:
drv/pptx.c:727:27: '__builtin___sprintf_chk'
<DIRECTIVE> directive writing <BYTECOUNT1> bytes into a region of size between
<BYTECOUNT2> and <BYTECOUNT3> [-Wformat-overflow=]:
drv/pptx.c:690:21: '/ppt/slides/slide' '17' '1' '10240'
drv/pptx.c:696:21: '/ppt/slides/_rels/slide' '23' '1' '10240'
drv/pptx.c:1009:21: '/ppt/media/media/image' '22' '1' '10240'
drv/pptx.c:1292:21: '/ppt/media/media/image' '22' '1' '10240'
drv/pptx.c:1341:21: '/ppt/media/media/image' '22' '1' '10240'
drv/pptx.c:1376:25: '%s' '33' '0' '10239'
svg/cdsvg.c:940:38: 'pt' '2' '0' '9'
svg/cdsvg.c:942:38: 'px' '2' '0' '9'
<DIRECTIVE> directive writing between <BYTECOUNT1> and <BYTECOUNT2> bytes into
a region of size between <BYTECOUNT3> and <BYTECOUNT4> [-Wformat-overflow=]:
drv/cdpdf.c:1566:52: '%g' '1' '13' '10' '22'
drv/cdps.c:2048:30: '%g' '1' '13' '8' '44'
assignment to <TYPE1> from incompatible pointer type <TYPE2>
[-Wincompatible-pointer-types]:
intcgm/cd_intcgm.c:776:23: 'void (*)(const char *, void *)' 'void (*)(const
char *, cdCGM *)'
intcgm/cd_intcgm.c:778:22: 'void (*)(const char *, void *)' 'void (*)(const
char *, cdCGM *)'
intcgm/cd_intcgm.c:780:26: 'void (*)(void *)' 'void (*)(cdCGM *)'
intcgm/cd_intcgm.c:781:22: 'void (*)(cgmPoint *, cgmPoint *, void *)' 'void
(*)(cgmPoint *, cgmPoint *, cdCGM *)'
intcgm/cd_intcgm.c:782:19: 'void (*)(int, double *, void *)' 'void
(*)(int, double *, cdCGM *)'
intcgm/cd_intcgm.c:783:25: 'void (*)(cgmRGB, void *)' 'void (*)(cgmRGB,
cdCGM *)'
intcgm/cd_intcgm.c:784:22: 'void (*)(int, cgmRGB, void *)' 'void (*)(int,
cgmRGB, cdCGM *)'
intcgm/cd_intcgm.c:785:23: 'void (*)(cgmPoint, cgmPoint, void *)' 'void
(*)(cgmPoint, cgmPoint, cdCGM *)'
intcgm/cd_intcgm.c:786:23: 'void (*)(int, void *)' 'void (*)(int, cdCGM
*)'
intcgm/cd_intcgm.c:787:18: 'void (*)(int, cgmPoint *, void *)' 'void
(*)(int, cgmPoint *, cdCGM *)'
intcgm/cd_intcgm.c:788:20: 'void (*)(int, cgmPoint *, void *)' 'void
(*)(int, cgmPoint *, cdCGM *)'
intcgm/cd_intcgm.c:789:17: 'void (*)(int, cgmPoint *, int, void *)' 'void
(*)(int, cgmPoint *, int, cdCGM *)'
intcgm/cd_intcgm.c:790:14: 'void (*)(const char *, cgmPoint, void *)'
'void (*)(const char *, cgmPoint, cdCGM *)'
intcgm/cd_intcgm.c:791:19: 'void (*)(cgmPoint, cgmPoint, cgmPoint, int,
int, unsigned char *, void *)' 'void (*)(cgmPoint, cgmPoint, cgmPoint, int,
int, unsigned char *, cdCGM *)'
intcgm/cd_intcgm.c:792:19: 'void (*)(cgmPoint, cgmPoint, void *)' 'void
(*)(cgmPoint, cgmPoint, cdCGM *)'
intcgm/cd_intcgm.c:793:16: 'void (*)(cgmPoint, double, void *)' 'void
(*)(cgmPoint, double, cdCGM *)'
intcgm/cd_intcgm.c:794:21: 'void (*)(cgmPoint, double, double, double,
int, void *)' 'void (*)(cgmPoint, double, double, double, int, cdCGM *)'
intcgm/cd_intcgm.c:795:17: 'void (*)(cgmPoint, cgmPoint, cgmPoint, void
*)' 'void (*)(cgmPoint, cgmPoint, cgmPoint, cdCGM *)'
intcgm/cd_intcgm.c:796:23: 'void (*)(cgmPoint, cgmPoint, cgmPoint,
double, double, int, void *)' 'void (*)(cgmPoint, cgmPoint, cgmPoint,
double, double, int, cdCGM *)'
intcgm/cd_intcgm.c:797:20: 'void (*)(const char *, const char *, const char
*, double, const char *, cgmRGB, void *)' 'void (*)(const char *, const char
*, const char *, double, const char *, cgmRGB, cdCGM *)'
intcgm/cd_intcgm.c:798:22: 'void (*)(const char *, double, const char *,
cgmRGB, void *)' 'void (*)(const char *, double, const char *, cgmRGB, cdCGM
*)'
intcgm/cd_intcgm.c:799:20: 'void (*)(const char *, cgmRGB, const char *,
cgmPattern *, void *)' 'void (*)(const char *, cgmRGB, const char *,
cgmPattern *, cdCGM *)'
intcgm/cd_intcgm.c:800:20: 'void (*)(const char *, const char *, const char
*, double, cgmRGB, cgmPoint, void *)' 'void (*)(const char *, const char *,
const char *, double, cgmRGB, cgmPoint, cdCGM *)'
intcgm/cd_intcgm.c:801:17: 'int (*)(double, void *)' 'int (*)(double,
cdCGM *)'
initialization of <TYPE1> {aka <TYPE2>} from incompatible pointer type <TYPE3>
{aka <TYPE4>} [-Wincompatible-pointer-types]:
cairo/cdcairodbuf.c:176:3: 'void (*)(cdCanvas *, void *)' 'void (*)(struct
_cdCanvas *, void *)' 'void (*)(cdCanvas *, cdCanvas *)' 'void (*)(struct
_cdCanvas *, struct _cdCanvas *)'
drv/cdim.c:242:3: 'void (*)(cdCanvas *, void *)' 'void (*)(struct _cdCanvas
*, void *)' 'void (*)(cdCanvas *, imImage *)' 'void (*)(struct _cdCanvas *,
struct _imImage *)'
drv/cdirgb.c:2056:3: 'void (*)(cdCanvas *, void *)' 'void (*)(struct
_cdCanvas *, void *)' 'void (*)(cdCanvas *, cdCanvas *)' 'void (*)(struct
_cdCanvas *, struct _cdCanvas *)'
passing argument <NUM> of <FUNC> from incompatible pointer type
[-Wincompatible-pointer-types]:
drv/pptx.c:1551:36: '3' 'minizip'
drv/pptx.c:1553:28: '2' 'removeTempFiles'
<VAR> may be used uninitialized [-Wmaybe-uninitialized]:
drv/cddgn.c:420:48: 'dhdr.props.flags.attributes'
this 'for' clause does not guard... [-Wmisleading-indentation]:
minizip/zip.c:521:5: ('for')
dereferencing type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]:
drv/cddgn.c:329:25: ('(long *) &dfloat)')
<VAR> is used uninitialized [-Wuninitialized]:
drv/cddgn.c:329:23: 'dfloat'
ignoring return value of <FUNC> declared with attribute <ATTRIBUTE>
[-Wunused-result]:
drv/cdmf.c:770:3: 'fscanf' 'warn_unused_result'
drv/cdmf.c:801:5: 'fscanf' 'warn_unused_result'
drv/cdmf.c:814:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:818:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:822:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:826:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:833:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:837:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:841:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:845:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:849:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:853:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:857:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:861:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:865:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:869:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:873:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:877:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:881:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:885:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:889:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:893:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:897:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:901:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:905:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:909:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:913:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:917:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:921:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:925:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:929:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:933:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:940:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:944:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:948:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:952:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:956:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:960:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:964:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:968:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:972:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:975:9: 'fscanf' 'warn_unused_result'
drv/cdmf.c:980:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:984:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:988:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:992:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:998:9: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1005:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1011:9: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1018:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1023:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1027:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1031:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1035:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1039:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1043:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1047:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1051:9: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1058:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1062:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1066:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1073:9: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1084:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1092:9: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1105:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1111:9: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1119:9: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1127:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1131:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1138:9: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1149:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1157:9: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1170:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1176:9: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1184:9: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1192:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1196:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1200:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1204:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1208:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1212:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1216:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1220:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1224:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1228:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1232:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1236:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1240:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1244:7: 'fscanf' 'warn_unused_result'
drv/cdmf.c:1248:7: 'fscanf' 'warn_unused_result'
gdk/cdgdkclp.c:40:3: 'fread' 'warn_unused_result'
intcgm/cgm_txt_get.c:10:3: 'fscanf' 'warn_unused_result'
intcgm/cgm_txt_get.c:26:5: 'fscanf' 'warn_unused_result'
intcgm/cgm_txt_get.c:37:3: 'fscanf' 'warn_unused_result'
intcgm/cgm_txt_get.c:48:3: 'fscanf' 'warn_unused_result'
intcgm/cgm_txt_get.c:107:3: 'fscanf' 'warn_unused_result'
statement with no effect [-Wunused-value]:
minizip/zip.c:1070:5: ('(')
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users