|
From: | Reuben Thomas |
Subject: | Re: Avoidable warning in getdtable.c? |
Date: | Tue, 13 Mar 2018 07:51:34 +0000 |
On 03/09/2018 04:25 PM, Reuben Thomas wrote:
According to this Open Group reference page
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/ resource.h.html
:
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:
https://community.hpe.com/hpeb/attachments/hpeb/itrc-151/ 23778/1/241970.pdf
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.
[Prev in Thread] | Current Thread | [Next in Thread] |