b4n left a comment (geany/geany-plugins#1417)

As you said glib terminates on allocation failure (but for explicit cases like 
`g_try_malloc()` & co). IMO it doesn't make sense to riddle the code with 
checks for allocation failures that can't happen, it just adds noise. There is 
a reason why glib decided to terminate the program for most allocation 
failures: it's a lot of work to handle it properly everywhere, and many times 
there's not much of anything sensible to do anyway, so usually trying to 
recover will just lead to a chain of failures, probably ending up in 
terminating the program anyway as nothing is working anymore anyway.

So I'd say we should ignore those, and probably check our setup or tell 
cppcheck these just doesn't make sense.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/1417#issuecomment-2727650836
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany-plugins/pull/1417/c2727650...@github.com>

Reply via email to