Thread (1 message) 1 message, 1 author, 2017-02-13

Re: [PATCH] clean: use warning_errno() when appropriate

From: Junio C Hamano <hidden>
Date: 2017-02-13 23:48:14

Jeff King [off-list ref] writes:
So in that sense doing the errno dance as close to the caller who cares
is the most _obvious_ thing, even if it isn't the shortest.
Yup.
It would be nice if there was a way to annotate a function as
errno-safe, and then transitively compute which other functions were
errno-safe when they do not call any errno-unsafe function. I don't know
if any static analyzers allow that kind of custom annotation, though
(and also I wonder whether the cost/benefit of maintaining those
annotations would be worth it).
Double yup.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help