From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.bugs Subject: bug#35062: [PATCH 4/4] don't compare unsigned to less-than-zero Date: Mon, 1 Apr 2019 01:37:42 +0300 Message-ID: <20190331223742.1351-5-Hi-Angel@yandex.ru> References: <20190331223742.1351-1-Hi-Angel@yandex.ru> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="153009"; mail-complaints-to="usenet@blaine.gmane.org" To: 35062@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 01 00:38:59 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hAj6P-000dfW-Ho for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Apr 2019 00:38:57 +0200 Original-Received: from localhost ([127.0.0.1]:35717 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAj6O-0007KM-IZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Mar 2019 18:38:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:32836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAj5a-0006uE-Sk for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2019 18:38:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hAj5Z-0001kj-Vg for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2019 18:38:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53294) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hAj5Z-0001kW-Oq for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2019 18:38:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hAj5Z-0006nm-L8 for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2019 18:38:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Mar 2019 22:38:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35062 X-GNU-PR-Package: emacs Original-Received: via spool by 35062-submit@debbugs.gnu.org id=B35062.155407188326114 (code B ref 35062); Sun, 31 Mar 2019 22:38:05 +0000 Original-Received: (at 35062) by debbugs.gnu.org; 31 Mar 2019 22:38:03 +0000 Original-Received: from localhost ([127.0.0.1]:38599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAj5X-0006mz-32 for submit@debbugs.gnu.org; Sun, 31 Mar 2019 18:38:03 -0400 Original-Received: from forward103j.mail.yandex.net ([5.45.198.246]:50689) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAj5T-0006lm-8q for 35062@debbugs.gnu.org; Sun, 31 Mar 2019 18:38:00 -0400 Original-Received: from mxback19o.mail.yandex.net (mxback19o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::70]) by forward103j.mail.yandex.net (Yandex) with ESMTP id 9502F6740500 for <35062@debbugs.gnu.org>; Mon, 1 Apr 2019 01:37:52 +0300 (MSK) Original-Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback19o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id a8XWbmvuX0-bqq08n6u; Mon, 01 Apr 2019 01:37:52 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1554071872; bh=ymb+26N7QrfLcyb2e34b9v6Sne5XNmTPP3zPvvg6AX4=; h=In-Reply-To:Subject:To:From:References:Date:Message-Id; b=u7MQEvaZ5SUbFS/Z87cE0pZdBqubYxGB13kyYEav4S6+Bgn9/YZkvvEWwMra+yXLx oTjB1bxG/nv/MjtgAdG4jq0sQ0Z9TMCuaUby/nS6EEZM7KhGK0TLsxGFSSrXFM/mSf 4t44bgnrBTel1CXjzTXlWhvoP//SGKgJxoDhuzU4= Authentication-Results: mxback19o.mail.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id XiGbwCpRwI-bq6u9O43; Mon, 01 Apr 2019 01:37:52 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190331223742.1351-1-Hi-Angel@yandex.ru> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156997 Archived-At: * pdumper.c: don't compare unsigned to less-than-zero Fixes 2 LGTM warnings: "Pointless comparison of unsigned value to zero." --- src/pdumper.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pdumper.c b/src/pdumper.c index a9b3732a2d4..5407154fb2d 100644 --- a/src/pdumper.c +++ b/src/pdumper.c @@ -4434,7 +4434,6 @@ dump_anonymous_allocate (void *base, static void dump_anonymous_release (void *addr, size_t size) { - eassert (size >= 0); #if VM_SUPPORTED == VM_MS_WINDOWS (void) size; if (!VirtualFree (addr, 0, MEM_RELEASE)) @@ -4584,7 +4583,6 @@ dump_map_file (void *base, int fd, off_t offset, size_t size, static void dump_unmap_file (void *addr, size_t size) { - eassert (size >= 0); #if !VM_SUPPORTED (void) addr; (void) size; -- 2.21.0