From: Lukas Berk Date: Sat, 30 Nov 2013 01:36:11 +0000 (-0500) Subject: Fix build error signed/unsigned comparison X-Git-Tag: release-2.5~389^2~21 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=5dd70393015421dd92b3abc0aca4a2034dfda06a;p=systemtap.git Fix build error signed/unsigned comparison *buildrun.cxx - change const int severely_limited to const unsigned int --- diff --git a/buildrun.cxx b/buildrun.cxx index f7a0d09bd..3c26d5081 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -65,7 +65,7 @@ run_make_cmd(systemtap_session& s, vector& make_cmd, // PR16276: but only if we're not running severely nproc-rlimited struct rlimit rlim; int rlimit_rc = getrlimit(RLIMIT_NPROC, &rlim); - const int severely_limited = smp*30; // WAG at number of gcc+make etc. nested processes + const unsigned int severely_limited = smp*30; // WAG at number of gcc+make etc. nested processes bool nproc_limited = (rlimit_rc == 0 && (rlim.rlim_max <= severely_limited || rlim.rlim_cur <= severely_limited)); if (smp >= 1 && !nproc_limited)