../../wvgsink.c: In function 'HB_FUN_HB_AX_SETUPCONNECTIONPOINT':
../../wvgsink.c:516: warning: dereferencing pointer 'hSink.33' does
break strict-aliasing rules


Have no idea how to cast it.

I hope we can fix it, because this line isn't safe.
Is it need at all?

../../wvgsink.c:546: note: initialized from here
../../wvgcuig.c: In function 'hb_gt_wvt_PaintGObjects':
../../wvgcuig.c:1554: warning: 'iTop' may be used uninitialized in this
function


Does iTop = 0, etc help ?
If not, try ( shift declaration lower down the blocks as

     if( gObj->iState == GOBJ_OBJSTATE_ENABLED )
     {
        int iTop = 0, iLeft = 0, iBottom = 0, iRight = 0;

If still not, I have no idea how to pacify.

You have to make sure that each preceding branch will
assign some values to these variables. Currently there
are cases were they don't which results in random
behavior.

The easiest fix is to initialize them on declaration
with some default values.

Brgs,
Viktor

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to