[Github-comments] [geany/geany] Fix clang warnings: Use empty array instead of NULL pointer (#2889)

elextr notifications at xxxxx
Mon Sep 6 09:37:34 UTC 2021


@rootkea If you are using the same options as [here](https://github.com/geany/geany/issues/2891#issuecomment-913481562), especially -O0 that might explain why the compiler does not notice the protection of the null check.  IIUC compilers need something like -O2 to do the data flow analysis that such checks depend on.  Maybe you could check if you get the warnings with -O2?

-- 
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/2889#issuecomment-913502439
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210906/2b266b42/attachment.htm>


More information about the Github-comments mailing list