Only a comment about the casts, they are intentionally done that way.
Best,
Scuri
2017-12-12 0:30 GMT-02:00 sur-behoffski <[email protected]>:
> G'day,
>
> As promised, I introduced myself a week ago, and watched and lurked
> on the list to see what the activity looked like. Antonio will know
> that the stuff that's about to appear has been in gestation for a
> long, long period of time -- perhaps 3-5 years -- but I've only been
> looking at IM, and have been writing to Antonio directly, instead of
> going via the list.
>
> I'll now start releasing transformed compiler output -- with Lua used
> for scripting in many places, of course. Also -- as suggested by
> Antonio and adopted by me -- I will use the IUP list for all
> discussions for all of IM, CD and IUP, as the mailing lists for the
> other packages has relatively little activity.
>
> This, then, is the first of three messages: I've worked from the
> Subversion tree for IUP (r4575), built the sources, and then run my
> "parse-build" script across it to organise the diagnostics.
>
> For your information, the command sequence to build the sources and
> produce this summary were (effectively):
>
> $ # (iup starts from a clean tree, unpacked from Subversion)
> $ cd /my/build/rig/control-dir
> $ pushd ../iup
> $ make >../control-dir/iup-build.out 2>&1
> $ popd
> $ ./parse-build.lua iup-build.out >iup-build.summary
>
> The results appear below. If a diagnostic message is mentioned, but
> it is alone with no further output, then no instances of that
> diagnostic were detected in the compiler output.
>
> cheers,
>
> sur-behoffski (Brenton Hoff)
> programmer, Grouse Software
>
>
>
> ------------------ cut here ------------------
>
>
> implicit declaration of function <FUNC> [-Wimplicit-function-declaration]:
>
>
> 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
>
>
> <FUNC> defined but not used [-Wunused-function]:
>
>
> cast to pointer from integer of different size [-Wint-to-pointer-cast]:
> iup_image.c:988:[Function:IupImage]:
> params[0] = (void*)width;
> iup_image.c:989:[Function:IupImage]:
> params[1] = (void*)height;
> iup_image.c:998:[Function:IupImageRGB]:
> params[0] = (void*)width;
> iup_image.c:999:[Function:IupImageRGB]:
> params[1] = (void*)height;
> iup_image.c:1008:[Function:IupImageRGBA]:
> params[0] = (void*)width;
> iup_image.c:1009:[Function:IupImageRGBA]:
> params[1] = (void*)height;
> gtk/iupgtk_open.c:171:[Function:gtkSetGlobalAttrib]:
> IupSetGlobal("XSCREEN", (char*)XDefaultScreen(xdisplay));
>
>
> cast from pointer to integer of different size [-Wpointer-to-int-cast]:
> iup_image.c:904:[Function:iImageCreate]:
> width = (int)(params[0]);
> iup_image.c:905:[Function:iImageCreate]:
> height = (int)(params[1]);
> iup_image.c:925:[Function:iImageCreate]:
> if (((int)(params[2])==-1) || ((int)(params[3])==-1)) /* compacted
> in one pointer */
> iup_image.c:925:[Function:iImageCreate]:
> if (((int)(params[2])==-1) || ((int)(params[3])==-1)) /* compacted
> in one pointer */
> iup_image.c:927:[Function:iImageCreate]:
> if ((int)(params[2])!=-1)
> iup_image.c:937:[Function:iImageCreate]:
> imgdata[i] = (unsigned char)((int)(params[i+2]));
>
>
> no return statement in function returning non-void [-Wreturn-type]:
>
>
> <VAR> defined but not used [-Wunused-variable]:
>
>
> variable <VAR> set but not used [-Wunused-but-set-variable]:
>
>
> <VAR> will be initialized after [-Wreorder]:
>
>
> <VAR> is usually a function [-Wmain]:
>
>
> deprecated conversion from string constant to <TYPE> [-Wwrite-strings]:
>
>
> format <FMT> expects argument of type <TYPE1>, but argument <NUM> has type
> <TYPE2> [-Wformat=]:
>
>
> comparison between <ENUM1> and <ENUM2> [-Wenum-compare]:
>
>
> statement with no effect [-Wunused-value]:
>
>
> the use of `tmpnam' is dangerous, better use `mkstemp':
>
>
> case value <LABEL> not in enumerated type <ENUM> [-Wswitch]:
>
>
> suggest parentheses around assignment used as truth value [-Wparentheses]:
>
>
> suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]:
>
>
> this 'for' clause does not guard... [-Wmisleading-indentation]:
>
>
> this 'if' clause does not guard... [-Wmisleading-indentation]:
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users