Closed ony closed 8 years ago
Does the above commit fix it? Seems like the easiest fix.
We had some vaguely similar issues with the clang analyzer that were fixed in f6f156365b15542714da601d2e26eecc49bbdeb0, but this one isn't obviously errno
-related.
Yes this helps. Thank you.
gcc-4.9.2 and gcc-5.2.0 issue an error during build:
Though according to code of
steal_block_hup
:And in
grab_pid
:Which means that error propagated correctly.
Maybe code of
mmap_scratch
confuses compiler:Though it is clear that there no way to get
0
before assigningscratch_page
to*addr
.Note that clang 3.7.0 able to build this code.