https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119011

--- Comment #24 from Paul Eggert <eggert at cs dot ucla.edu> ---
(In reply to Alejandro Colomar from comment #21)
> Jonathan's suggestion was to treat -1 as a special case, diagnosing all
> others.  I think that makes sense, as -1 is a well-known error code, while
> -2 sounds like an actual -2, and probably should be diagnosed.

But functions like mbrtowc return error codes like -2 and -3, converted to
size_t. It is also a pain to pacify -Wsign-compare for calls to these
functions.

Reply via email to