[Github-comments] [geany/geany] New warning with GCC 7 (#1683)

elextr notifications at xxxxx
Fri Nov 10 01:54:08 UTC 2017


Yeah, looks like GCC can't propogate the value limitation from the check to the sprintf, or has a bug that it doesn't notice that cmd is unsigned and can never get a minus sign.

Anyhow easy solution is add a char to the buffer.

As discussed on IRC maybe also look at removing the initialisation, I can't remember why its there now, but seems useless.

I don't have gcc7 to test yet.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1683#issuecomment-343351334
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20171110/4c319f9e/attachment-0001.html>


More information about the Github-comments mailing list