[Github-comments] [geany/geany-plugins] Scope breaks nightly with gcc 8 (#794)

Colomban Wendling notifications at xxxxx
Thu Nov 29 07:38:11 UTC 2018


@elextr which nightlies?  The ones on nightly.geany.org currently break because of a cppcheck issue, which I believe to be a cppcheck bug because it builds fine, and always did build fine.

Yes, adding parentheses around might be a workaround, but it still looks like a cppcheck bug to me, unless indeed gcc 8 also fails and that's not a new bug but a new restriction coming from C11 or something -- which I would find odd, but well.

I'll try to investigate what I can, but the code does look legitimate to me.  A reasonable alternative could be using `MAX()` as it's what the code actually does IIUC:
```c
pointer_size = MAX(sizeof(void *), sizeof &memory_init);
```
but I don't see any good reason to change that line apart from working around a cppcheck bug 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-plugins/issues/794#issuecomment-442735573
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20181128/fc384cee/attachment.html>


More information about the Github-comments mailing list