G'day,
Seeing so many recent patches applied to the IUP tree as a result of
the Coverity scan, I thought I'd re-run my "parse-build.lua" script
with a GCC-7.4 build of IUP-r5207, and compare it with the same
analysis of IUP-r5188 that I posted a couple of weeks ago. (r5207
was current as of the time of this message.)
I'm pleased to announce that the number of lines in the warnings file
has dropped by 49 (was 3984, now down to 3935); a diff ("diff -C 3")
of the summary warnings is attached:
$ diff -C 3 iup-mint-summary-gcc7.4-r5188.out
iup-mint-summary-gcc7.4-r5207.out
cheers,
s-b etc.
*** iup-mint-summary-gcc7.4-r5188.out Mon May 20 17:37:03 2019
--- iup-mint-summary-gcc7.4-r5207.out Sun Jun 2 21:35:30 2019
***************
*** 38,48 ****
<FUNC> is deprecated [-Wdeprecated-declarations]:
- gtk/iupgtk_label.c:132:[Function:gtkLabelSetAlignmentAttrib]:
gtk_misc_set_alignment
- gtk/iupgtk_font.c:208:[Function:gtkFontUpdateWidget]:
gtk_widget_override_font
- gtk/iupgtk_filedlg.c:455:[Function:gtkFileDlgPopup]:
gtk_widget_set_double_buffered
- gtk/iupgtk_button.c:140:[Function:gtkButtonSetAlignmentAttrib]:
gtk_button_set_alignment
- gtk/iupgtk_toggle.c:238:[Function:gtkToggleSetAlignmentAttrib]:
gtk_button_set_alignment
gtk/iupgtk_tree.c:2032:[Function:gtkTreeCellTextEditingStarted]:
gtk_widget_override_font
gtk/iupgtk_canvas.c:494:[Function:gtkCanvasSetDXAttrib]:
gtk_adjustment_value_changed
gtk/iupgtk_canvas.c:582:[Function:gtkCanvasSetDYAttrib]:
gtk_adjustment_value_changed
--- 38,43 ----
***************
*** 64,72 ****
<FUNC1> is deprecated: Use <FUNC2> instead [-Wdeprecated-declarations]:
- gtk/iupgtk_open.c:303:[Function:gtkUpdateGlobalColors]:
gtk_style_context_get_background_color gtk_render_background
- gtk/iupgtk_open.c:314:[#included-from:gtk/iupgtk_open.c:314]:
gtk_style_context_get_background_color gtk_render_background
- gtk/iupgtk_open.c:318:[#included-from:gtk/iupgtk_open.c:318]:
gtk_style_context_get_background_color gtk_render_background
gtk/iupgtk_tree.c:2842:[Function:gtkTreeMapMethod]: gdk_color_get_type
gdk_rgba_get_type
gtk/iupgtk_menu.c:189:[Function:gtkItemActivate]:
gtk_image_menu_item_get_type gtk_menu_item_get_type
gtk/iupgtk_menu.c:310:[Function:gtkItemSetTitleImageAttrib]:
gtk_image_menu_item_get_type gtk_menu_item_get_type
--- 59,64 ----
***************
*** 134,153 ****
cast to pointer from integer of different size [-Wint-to-pointer-cast]:
- iup_image.c:1114:[Function:IupImage]:
- params[0] = (void*)width;
- iup_image.c:1115:[Function:IupImage]:
- params[1] = (void*)height;
- iup_image.c:1124:[Function:IupImageRGB]:
- params[0] = (void*)width;
- iup_image.c:1125:[Function:IupImageRGB]:
- params[1] = (void*)height;
- iup_image.c:1134:[Function:IupImageRGBA]:
- params[0] = (void*)width;
- iup_image.c:1135:[Function:IupImageRGBA]:
- params[1] = (void*)height;
- gtk/iupgtk_open.c:240:[Function:gtkSetGlobalAttrib]:
- IupSetGlobal("XSCREEN", (char*)XDefaultScreen(xdisplay));
iup_tuio.cpp:404:[Function:Ihandle* IupTuioClient(int)]:
params[0] = (void*)port;
iuplua_tree_aux.c:84:[Function:TreeGetId]:
--- 126,131 ----
***************
*** 175,192 ****
cast from pointer to integer of different size [-Wpointer-to-int-cast]:
- iup_image.c:1030:[Function:iImageCreate]:
- width = (int)(params[0]);
- iup_image.c:1031:[Function:iImageCreate]:
- height = (int)(params[1]);
- iup_image.c:1051:[Function:iImageCreate]:
- if (((int)(params[2])==-1) || ((int)(params[3])==-1)) /* NULL or
compacted in one pointer */
- iup_image.c:1051:[Function:iImageCreate]:
- if (((int)(params[2])==-1) || ((int)(params[3])==-1)) /* NULL or
compacted in one pointer */
- iup_image.c:1053:[Function:iImageCreate]:
- if ((int)(params[2])!=-1)
- iup_image.c:1063:[Function:iImageCreate]:
- imgdata[i] = (unsigned char)((int)(params[i+2]));
iuplua_tree_aux.c:60:[Function:tree_push_userid]:
int ref = (int)userid;
iuplua_tree_aux.c:105:[Function:TreeSetUserId]:
--- 153,158 ----
***************
*** 3853,3863 ****
<FUNC> defined but not used [-Wunused-function]:
- iup_flatlist.c:[At:1608]: iListSetShowDragDropAttrib
- iup_flatlist.c:[At:1603]: iListGetShowDragDropAttrib
- iup_flatlist.c:[At:1572]: iFlatListCallDragDropCb
- iup_flatlist.c:[At:583]: iFlatListSingleCallDblClickCb
- iup_flatval.c:[At:625]: iFlatValSetAttribPostRedraw
matrix/iupmat_draw.c:[At:1550]: iMatrixDrawHasFlatScrollBar
scintilla/lexers/LexLed.cxx:[At:43]: int
LongDelimCheck(Scintilla::StyleContext&)
lex.yy.c:1566:[Function:yylex]: yy_flex_realloc
--- 3819,3824 ----
***************
*** 3872,3887 ****
ignoring return value of <FUNC>, declared with attribute warn_unused_result
[-Wunused-result]:
- iup_recplay.c:214:[Function:iPlayReadChar]: fscanf
- iup_recplay.c:216:[Function:iPlayReadChar]: fread
- iup_recplay.c:194:[Function:iPlayReadFloat]: fscanf
- iup_recplay.c:196:[Function:iPlayReadFloat]: fread
- iup_recplay.c:186:[Function:iPlayReadInt]: fscanf
- iup_recplay.c:188:[Function:iPlayReadInt]: fread
- iup_recplay.c:204:[Function:iPlayReadByte]: fscanf
- iup_recplay.c:208:[Function:iPlayReadByte]: fread
- iup_recplay.c:221:[Function:iPlayReadStr]: fread
- iup_recplay.c:227:[Function:iPlayReadStr]: fread
matrixex/iupmatex_clipboard.c:693:[Function:iMatrixReadFile]: fread
src/font.cpp:86:[MemeberFunction:bool mglFont::read_data(const char*,
int, std::vector<short int>&, std::vector<mglGlyphDescr>&)]: char*
fgets(char*, int, FILE*)
src/font.cpp:86:[MemeberFunction:bool mglFont::read_main(const char*,
std::vector<short int>&)]: char* fgets(char*, int, FILE*)
--- 3833,3838 ----
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users