Clang on macOS warns about these with -Wtautological-compare. POSIX
guarantees that rlim_t is
unsigned (cf.
http://pubs.opengroup.org/onlinepubs/
009695399/basedefs/sys/resource.h.html),
so these resource limits can never be negative.
* src/emacs.c (main): Remove tautological comparisons.
(https://www.cygwin.com/ml/cygwin/2015-07/msg00096.html). */
struct rlimit rlim;
if (getrlimit (RLIMIT_STACK, &rlim) == 0
- && 0 <= rlim.rlim_cur && rlim.rlim_cur <= LONG_MAX)
+ && rlim.rlim_cur <= LONG_MAX)
{
rlim_t lim = rlim.rlim_cur;
right thing anyway. */
long pagesize = getpagesize ();
newlim += pagesize - 1;
- if (0 <= rlim.rlim_max && rlim.rlim_max < newlim)
+ if (rlim.rlim_max < newlim)
newlim = rlim.rlim_max;
newlim -= newlim % pagesize;