G'day again, This is the middle entry of three postings regarding IM, CD and IUP. See the preceding posting, "IM-r574 warnings update", for most of the explanation for why I'm focussing on GCC warnings in the code.
cheers, sur-behoffski (Brenton Hoff) programmer, Grouse Software
* No diagnostics for: #include expects "FILENAME" or <FILENAME> missing binary operator before token "(" 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] format <FMT> expects argument of type <TYPE1>, but argument <NUM> has type <TYPE2> [-Wformat=] too many arguments for format [-Wformat-extra-args] format not a string literal and no format arguments [-Wformat-security] implicit declaration of function <FUNC> [-Wimplicit-function-declaration] 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] <VAR> will be initialized after [-Wreorder] 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 'while' clause does not guard... [-Wmisleading-indentation] 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] enumeration value <ENUM> not handled in switch [-Wswitch] <EXPRESSION> is used uninitialized in this function [-Wuninitialized] <FUNC> declared <TYPE> but never defined [-Wunused-function] label <LABEL> defined but not used [-Wunused-label] value computed is not used [-Wunused-value] <VAR> defined but not used [-Wunused-variable] unused variable <VAR> [-Wunused-variable] warning: ISO C++ forbids converting a string constant to <TYPE> [-Wwrite-strings] deprecated conversion from string constant to <TYPE> [-Wwrite-strings] (End of list.) <FUNC> is deprecated [-Wdeprecated-declarations]: cairo/cdcaironative_gdk.c:52:[Function:cdGetScreenSize]: gdk_screen_get_width cairo/cdcaironative_gdk.c:53:[#included-from:cairo/cdcaironative_gdk.c:53]: gdk_screen_get_height cairo/cdcaironative_gdk.c:54:[#included-from:cairo/cdcaironative_gdk.c:54]: gdk_screen_get_width_mm cairo/cdcaironative_gdk.c:55:[#included-from:cairo/cdcaironative_gdk.c:55]: gdk_screen_get_height_mm cairo/cdcaironative_gdk.c:203:[Function:cdcreatecanvas]: gdk_screen_get_width cairo/cdcaironative_gdk.c:203:[#included-from:cairo/cdcaironative_gdk.c:203]: gdk_screen_get_width_mm cairo/cdcaironative_gdk.c:204:[#included-from:cairo/cdcaironative_gdk.c:204]: gdk_screen_get_height cairo/cdcaironative_gdk.c:204:[#included-from:cairo/cdcaironative_gdk.c:204]: gdk_screen_get_height_mm <FUNC1> is deprecated: Use <FUNC2> instead [-Wdeprecated-declarations]: cairo/cdcaironative_gdk.c:24:[Function:cdGetScreenColorPlanes]: 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:[Function:openFile]: __builtin___sprintf_chk <DIRECTIVE> directive writing 1 byte into a region of size between 0 and <BYTECOUNT> [-Wformat-overflow=]: cd_text.c:310:[Function:cdCanvasNativeFont]: 1023 <DIRECTIVE> directive writing <BYTECOUNT1> bytes into a region of size between <BYTECOUNT2> and <BYTECOUNT3> [-Wformat-overflow=]: svg/cdsvg.c:933:[Function:cdfont]: px 2 0 9 drv/pptx.c:690:[Function:pptxOpenSlide]: /ppt/slides/slide 17 1 10240 drv/pptx.c:696:[#included-from:drv/pptx.c:696]: /ppt/slides/_rels/slide 23 1 10240 drv/pptx.c:1009:[Function:pptxPattern]: /ppt/media/media/image 22 1 10240 drv/pptx.c:1292:[Function:pptxImageRGB]: /ppt/media/media/image 22 1 10240 drv/pptx.c:1341:[Function:pptxImageRGBA]: /ppt/media/media/image 22 1 10240 <DIRECTIVE> directive writing between <BYTECOUNT1> and <BYTECOUNT2> bytes into a region of size between <BYTECOUNT3> and <BYTECOUNT4> [-Wformat-overflow=]: drv/cdps.c:2048:[Function:get_margins_attrib]: %g 1 13 8 44 drv/cdpdf.c:1566:[Function:set_opacity_attrib]: %g 1 13 10 22 <DIRECTIVE> directive writing up to <BYTECOUNT1> bytes into a region of size <BYTECOUNT2> [-Wformat-overflow=]: pdflib/pdcore/pc_core.c:982:[Function:pdc_error.part.1]: %s 10239 10234 implicit declaration of function <FUNC1>; did you mean <FUNC2>? [-Wimplicit-function-declaration]: drv/cdgl.c:735:[Function:cdgetfontdim]: ftglGetFontMaxWidth ftglGetFontAscender drv/cdgl.c:979:[Function:cdftext]: ftglSetNearestFilter ftglSetLayoutFont assignment from incompatible pointer type [-Wincompatible-pointer-types]: intcgm/cd_intcgm.c:776:[Function:cdplayCGM]: funcs.BeginMetafile = cdcgm_BeginMetafile; ^ intcgm/cd_intcgm.c:778:[Function:cdplayCGM]: funcs.BeginPicture = cdcgm_BeginPicture; ^ intcgm/cd_intcgm.c:780:[Function:cdplayCGM]: funcs.BeginPictureBody = cdcgm_BeginPictureBody; ^ intcgm/cd_intcgm.c:781:[Function:cdplayCGM]: funcs.DeviceExtent = cdcgm_DeviceExtent; ^ intcgm/cd_intcgm.c:782:[Function:cdplayCGM]: funcs.ScaleMode = cdcgm_ScaleMode; ^ intcgm/cd_intcgm.c:783:[Function:cdplayCGM]: funcs.BackgroundColor = cdcgm_BackgroundColor; ^ intcgm/cd_intcgm.c:784:[Function:cdplayCGM]: funcs.Transparency = cdcgm_Transparency; ^ intcgm/cd_intcgm.c:785:[Function:cdplayCGM]: funcs.ClipRectangle = cdcgm_ClipRectangle; ^ intcgm/cd_intcgm.c:786:[Function:cdplayCGM]: funcs.ClipIndicator = cdcgm_ClipIndicator; ^ intcgm/cd_intcgm.c:787:[Function:cdplayCGM]: funcs.PolyLine = cdcgm_PolyLine; ^ intcgm/cd_intcgm.c:788:[Function:cdplayCGM]: funcs.PolyMarker = cdcgm_PolyMarker; ^ intcgm/cd_intcgm.c:789:[Function:cdplayCGM]: funcs.Polygon = cdcgm_Polygon; ^ intcgm/cd_intcgm.c:790:[Function:cdplayCGM]: funcs.Text = cdcgm_Text; ^ intcgm/cd_intcgm.c:791:[Function:cdplayCGM]: funcs.CellArray = cdcgm_CellArray; ^ intcgm/cd_intcgm.c:792:[Function:cdplayCGM]: funcs.Rectangle = cdcgm_Rectangle; ^ intcgm/cd_intcgm.c:793:[Function:cdplayCGM]: funcs.Circle = cdcgm_Circle; ^ intcgm/cd_intcgm.c:794:[Function:cdplayCGM]: funcs.CircularArc = cdcgm_CircularArc; ^ intcgm/cd_intcgm.c:795:[Function:cdplayCGM]: funcs.Ellipse = cdcgm_Ellipse; ^ intcgm/cd_intcgm.c:796:[Function:cdplayCGM]: funcs.EllipticalArc = cdcgm_EllipticalArc; ^ intcgm/cd_intcgm.c:797:[Function:cdplayCGM]: funcs.LineAttrib = cdcgm_LineAttrib; ^ intcgm/cd_intcgm.c:798:[Function:cdplayCGM]: funcs.MarkerAttrib = cdcgm_MarkerAttrib; ^ intcgm/cd_intcgm.c:799:[Function:cdplayCGM]: funcs.FillAttrib = cdcgm_FillAttrib; ^ intcgm/cd_intcgm.c:800:[Function:cdplayCGM]: funcs.TextAttrib = cdcgm_TextAttrib; ^ intcgm/cd_intcgm.c:801:[Function:cdplayCGM]: funcs.Counter = cdcgm_Counter; ^ initialization from incompatible pointer type [-Wincompatible-pointer-types]: drv/cdirgb.c:[At:2056]: cdcreatecanvasDB, cairo/cdcairodbuf.c:[At:176]: cdcreatecanvas, drv/cdim.c:[At:242]: cdcreatecanvas, passing argument <NUM> of <FUNC> from incompatible pointer type [-Wincompatible-pointer-types]: drv/pptx.c:1551:[Function:writeZipFile]: 3 minizip ret = minizip(filename, dirname, files, i); drv/pptx.c:1553:[Function:writeZipFile]: 2 removeTempFiles removeTempFiles(dirname, files, i); this 'for' clause does not guard... [-Wmisleading-indentation]: minizip/zip.c:521:[Function:zip64local_SearchCentralDir]: for (i=(int)uReadSize-3; (i--)>0;) ^~~ minizip/zip.c:529:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' if (uPosFound!=0) ^~ this 'if' clause does not guard... [-Wmisleading-indentation]: pdflib/pdflib/p_document.c:1118:[Function:pdf_get_document_common_options]: if (pdc_get_optvalues("openmode", resopts, &inum, NULL)) ^~ pdflib/pdflib/p_document.c:1121:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (doc->openmode == open_layers) ^~ pdflib/pdflib/p_font.c:926:[Function:pdf_get_font_options]: if (pdc_get_optvalues("linegap", resopts, &fo->linegap, NULL)) ^~ pdflib/pdflib/p_font.c:930:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' pdc_get_optvalues("dropcorewidths", resopts, &fo->dropcorewidths, NULL); ^~~~~~~~~~~~~~~~~ pdflib/pdflib/p_font.c:1576:[Function:pdf_load_font_internal]: if (!font->ft.img) ^~ pdflib/pdflib/p_font.c:1579:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (logg1) ^~ dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]: drv/cddgn.c:329:[Function:put_as_double]: put_long(ctxcanvas, *((long *) &dfloat)); ^~~~~~~~ <VAR> defined but not used [-Wunused-const-variable=]: pdflib/pdflib/p_page.c:[At:1406]: pdf_sepinfo_options <FUNC> defined but not used [-Wunused-function]: pdflib/pdcore/pc_crypt.c:[At:26]: pdc_pd_crypt_c pdflib/pdcore/pc_scope.c:[At:25]: pdc_check_scope_core ignoring return value of <FUNC>, declared with attribute warn_unused_result [-Wunused-result]: intcgm/cgm_txt_get.c:10:[Function:cgm_txt_get_sep]: fscanf intcgm/cgm_txt_get.c:26:[Function:cgm_txt_skip_com]: fscanf intcgm/cgm_txt_get.c:37:[Function:cgm_txt_skip_parentheses]: fscanf intcgm/cgm_txt_get.c:48:[Function:cgm_txt_get_ter_noerr]: fscanf intcgm/cgm_txt_get.c:107:[Function:cgm_txt_get_e]: fscanf drv/cdmf.c:770:[Function:cdplay]: fscanf drv/cdmf.c:801:[Function:cdplay]: fscanf drv/cdmf.c:814:[Function:cdplay]: fscanf drv/cdmf.c:818:[Function:cdplay]: fscanf drv/cdmf.c:822:[Function:cdplay]: fscanf drv/cdmf.c:826:[Function:cdplay]: fscanf drv/cdmf.c:833:[Function:cdplay]: fscanf drv/cdmf.c:837:[Function:cdplay]: fscanf drv/cdmf.c:841:[Function:cdplay]: fscanf drv/cdmf.c:845:[Function:cdplay]: fscanf drv/cdmf.c:849:[Function:cdplay]: fscanf drv/cdmf.c:853:[Function:cdplay]: fscanf drv/cdmf.c:857:[Function:cdplay]: fscanf drv/cdmf.c:861:[Function:cdplay]: fscanf drv/cdmf.c:865:[Function:cdplay]: fscanf drv/cdmf.c:869:[Function:cdplay]: fscanf drv/cdmf.c:873:[Function:cdplay]: fscanf drv/cdmf.c:877:[Function:cdplay]: fscanf drv/cdmf.c:881:[Function:cdplay]: fscanf drv/cdmf.c:885:[Function:cdplay]: fscanf drv/cdmf.c:889:[Function:cdplay]: fscanf drv/cdmf.c:893:[Function:cdplay]: fscanf drv/cdmf.c:897:[Function:cdplay]: fscanf drv/cdmf.c:901:[Function:cdplay]: fscanf drv/cdmf.c:905:[Function:cdplay]: fscanf drv/cdmf.c:909:[Function:cdplay]: fscanf drv/cdmf.c:913:[Function:cdplay]: fscanf drv/cdmf.c:917:[Function:cdplay]: fscanf drv/cdmf.c:921:[Function:cdplay]: fscanf drv/cdmf.c:925:[Function:cdplay]: fscanf drv/cdmf.c:929:[Function:cdplay]: fscanf drv/cdmf.c:933:[Function:cdplay]: fscanf drv/cdmf.c:940:[Function:cdplay]: fscanf drv/cdmf.c:944:[Function:cdplay]: fscanf drv/cdmf.c:948:[Function:cdplay]: fscanf drv/cdmf.c:952:[Function:cdplay]: fscanf drv/cdmf.c:956:[Function:cdplay]: fscanf drv/cdmf.c:960:[Function:cdplay]: fscanf drv/cdmf.c:964:[Function:cdplay]: fscanf drv/cdmf.c:968:[Function:cdplay]: fscanf drv/cdmf.c:972:[Function:cdplay]: fscanf drv/cdmf.c:975:[Function:cdplay]: fscanf drv/cdmf.c:980:[Function:cdplay]: fscanf drv/cdmf.c:984:[Function:cdplay]: fscanf drv/cdmf.c:988:[Function:cdplay]: fscanf drv/cdmf.c:992:[Function:cdplay]: fscanf drv/cdmf.c:998:[Function:cdplay]: fscanf drv/cdmf.c:1005:[Function:cdplay]: fscanf drv/cdmf.c:1011:[Function:cdplay]: fscanf drv/cdmf.c:1018:[Function:cdplay]: fscanf drv/cdmf.c:1023:[Function:cdplay]: fscanf drv/cdmf.c:1027:[Function:cdplay]: fscanf drv/cdmf.c:1031:[Function:cdplay]: fscanf drv/cdmf.c:1035:[Function:cdplay]: fscanf drv/cdmf.c:1039:[Function:cdplay]: fscanf drv/cdmf.c:1043:[Function:cdplay]: fscanf drv/cdmf.c:1047:[Function:cdplay]: fscanf drv/cdmf.c:1051:[Function:cdplay]: fscanf drv/cdmf.c:1058:[Function:cdplay]: fscanf drv/cdmf.c:1062:[Function:cdplay]: fscanf drv/cdmf.c:1066:[Function:cdplay]: fscanf drv/cdmf.c:1073:[Function:cdplay]: fscanf drv/cdmf.c:1084:[Function:cdplay]: fscanf drv/cdmf.c:1092:[Function:cdplay]: fscanf drv/cdmf.c:1105:[Function:cdplay]: fscanf drv/cdmf.c:1111:[Function:cdplay]: fscanf drv/cdmf.c:1119:[Function:cdplay]: fscanf drv/cdmf.c:1127:[Function:cdplay]: fscanf drv/cdmf.c:1131:[Function:cdplay]: fscanf drv/cdmf.c:1138:[Function:cdplay]: fscanf drv/cdmf.c:1149:[Function:cdplay]: fscanf drv/cdmf.c:1157:[Function:cdplay]: fscanf drv/cdmf.c:1170:[Function:cdplay]: fscanf drv/cdmf.c:1176:[Function:cdplay]: fscanf drv/cdmf.c:1184:[Function:cdplay]: fscanf drv/cdmf.c:1192:[Function:cdplay]: fscanf drv/cdmf.c:1196:[Function:cdplay]: fscanf drv/cdmf.c:1200:[Function:cdplay]: fscanf drv/cdmf.c:1204:[Function:cdplay]: fscanf drv/cdmf.c:1208:[Function:cdplay]: fscanf drv/cdmf.c:1212:[Function:cdplay]: fscanf drv/cdmf.c:1216:[Function:cdplay]: fscanf drv/cdmf.c:1220:[Function:cdplay]: fscanf drv/cdmf.c:1224:[Function:cdplay]: fscanf drv/cdmf.c:1228:[Function:cdplay]: fscanf drv/cdmf.c:1232:[Function:cdplay]: fscanf drv/cdmf.c:1236:[Function:cdplay]: fscanf drv/cdmf.c:1240:[Function:cdplay]: fscanf drv/cdmf.c:1244:[Function:cdplay]: fscanf drv/cdmf.c:1248:[Function:cdplay]: fscanf gdk/cdgdkclp.c:40:[Function:cdkillcanvas]: fread statement with no effect [-Wunused-value]: minizip/zip.c:1070:[Function:zipOpenNewFileInZip4_64]: (crcForCrypting); variable <VAR> set but not used [-Wunused-but-set-variable]: pdflib/pdflib/p_afm.c:540:[Function:pdf_process_metrics_data]: nalloc pdflib/pdflib/p_cid.c:44:[Function:pdf_handle_cidfont]: isstdfont pdflib/pdflib/p_color.c:477:[Function:pdf_init_colorspaces]: slot pdflib/pdflib/p_color.c:624:[Function:pdf_write_colormap]: base pdflib/pdflib/p_document.c:1924:[Function:pdf__end_document]: doc pdflib/pdflib/p_params.c:571:[Function:pdf__set_value]: ppt pdflib/pdflib/p_template.c:101:[Function:pdf__begin_template]: verbose pdflib/pdflib/p_text.c:2587:[Function:pdf_fit_textline_internal]: hasfitbox pdflib/pdflib/p_truetype.c:39:[Function:pdf_get_metrics_tt]: ev pdflib/pdflib/p_truetype.c:34:[Function:pdf_get_metrics_tt]: kbfilesize
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users