[Github-comments] [geany/geany] Rewrite HL_N_ENTRIES macro to avoid a GCC8 false positive warning (#2398)

Colomban Wendling notifications at xxxxx
Sun Nov 17 14:59:58 UTC 2019


> I can think of a couple alternatives, but none which require so few changes (ex. explicit size variables for each array, sentinel-terminated arrays, etc).

I really think any solution should minimize the risk of likely problems (well, at least the ones that are likely to happen, e.g. anything that can arise from adding/modifying mappings in higlightingmappings.h), and explicit size variables seem really easy to get wrong (or at the very least tedious), and sentinels are also easily forgotten if not checked by the compiler.

-- 
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/pull/2398#issuecomment-554753727
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20191117/d7d009a4/attachment.html>


More information about the Github-comments mailing list