@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?