https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91397
--- Comment #7 from Marc Glisse <glisse at gcc dot gnu.org> --- (In reply to Steinar H. Gunderson from comment #6) > So basically GCC is worried that I might be calling allocate() with -1 > bytes, and gives a warning? Yes, although it might not always give the warning, depends on various heuristics. > last_slash presumably has to be >= path, given that it comes out of > strrchr(). It doesn't directly, there is a lot of last_slash-- with various conditions.