dataparksearch icon indicating copy to clipboard operation
dataparksearch copied to clipboard

acronym.c:269:sequence point error ?

Open dcb314 opened this issue 7 years ago • 2 comments

acronym.c:269:117: warning: operation on '(ww + (sizetype)(i * 48))->len' may be undefined [-Wsequence-point]

Source code is

 DpsConv(&uni_lc, ww[i].word, (15*ww[i].len+1)*sizeof(char), (char*)ww[i].uword, sizeof(dpsunicode_t)*((ww[i].len = DpsUniLen(ww[i].uword)) + 1));

dcb314 avatar Feb 19 '18 16:02 dcb314

Thank you for reporting it. Though in this case it is not an error.

Maxime2 avatar Mar 03 '18 04:03 Maxime2

Though in this case it is not an error.

Surprising.

There looks to me to be an embedded assignment to ww[i].len near the end of the list, and a use of ww[i].len near the start. That would be enough to cause a sequence point error.

dcb314 avatar Mar 03 '18 07:03 dcb314