On 09/11/2014 01:05 PM, Дилян Палаузов wrote:
vasnprintf.c: In function ‘vasnprintf’:
vasnprintf.c:5107:35: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
if (count < maxlen
^
count is int (signed) and maxlen is size_t (<=> unsigned) (lines 4935
and 4936).
Sure, but 'count' is nonnegative, so the comparison is numerically
correct and there is no bug here.
As a general rule gnulib doesn't worry about pacifying gcc
-Wsign-compare, which issues too many false alarms like this.