[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Avoidable warning in getdtable.c?

From: Paul Eggert
Subject: Re: Avoidable warning in getdtable.c?
Date: Mon, 12 Mar 2018 16:55:47 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 03/09/2018 04:25 PM, Reuben Thomas wrote:
According to this Open Group reference page

rlim_t: Unsigned integer type used for limit values.

rlim_t is signed on some non-POSIX platforms so the comparison is needed there. Sorry, don't recall which platforms offhand, but a quick Google search suggests that olderĀ  HP-UX is one such (this version was before the requirement in question was added to POSIX). See page 18 of:


How about compiling with -Wno-tautological-compare instead, at least for code derived from Gnulib? In my experience, -Wtautological-compare is more trouble than it's worth, for Gnulib code.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]