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

gcc 7 emits format-truncation warning #30

Open
madebr opened this issue Nov 28, 2018 · 0 comments
Open

gcc 7 emits format-truncation warning #30

madebr opened this issue Nov 28, 2018 · 0 comments

Comments

@madebr
Copy link
Contributor

madebr commented Nov 28, 2018

When compiling microprofile using gcc 7, a format-truncation warning is emitted at this line:

snprintf(&S.TimerInfo[nTimerIndex].pNameExt[0], sizeof(S.TimerInfo[nTimerIndex].pNameExt)-1, "%s %s", S.GroupInfo[nGroupIndex].pName, pName);

log output:
https://travis-ci.com/rwengine/openrw/jobs/161257735#L3033

note: Adding -Wformat-truncation lets all gcc's emit this warning.

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

1 participant