Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acronym.c:269:sequence point error ? #16

Open
dcb314 opened this issue Feb 19, 2018 · 2 comments
Open

acronym.c:269:sequence point error ? #16

dcb314 opened this issue Feb 19, 2018 · 2 comments

Comments

@dcb314
Copy link

dcb314 commented Feb 19, 2018

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));
@Maxime2
Copy link
Owner

Maxime2 commented Mar 3, 2018

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

@dcb314
Copy link
Author

dcb314 commented Mar 3, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants