From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id AEAFD3892003; Fri, 8 May 2020 18:00:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AEAFD3892003 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: fifo: fix type of fifo_reader_id_t operators X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: e6ddeca1d39bf80dbc80b5c643888b598f5b46dd X-Git-Newrev: 2125ca8a69d0680ffe8079c15ef479f869ee35cc Message-Id: <20200508180034.AEAFD3892003@sourceware.org> Date: Fri, 8 May 2020 18:00:34 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2020 18:00:34 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=2125ca8a69d0680ffe8079c15ef479f869ee35cc commit 2125ca8a69d0680ffe8079c15ef479f869ee35cc Author: Corinna Vinschen Date: Fri May 8 20:00:24 2020 +0200 Cygwin: fifo: fix type of fifo_reader_id_t operators fifo_reader_id_t::operator == and != have been defined without type accidentally. For some weird reason, only x86 gcc complains about this problem, not x86_64 gcc. Signed-off-by: Corinna Vinschen Diff: --- winsup/cygwin/fhandler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 8a23d6753..9a82d491a 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -1308,12 +1308,12 @@ struct fifo_reader_id_t operator bool () const { return winpid != 0 || fh != NULL; } - friend operator == (const fifo_reader_id_t &l, const fifo_reader_id_t &r) + friend bool operator == (const fifo_reader_id_t &l, const fifo_reader_id_t &r) { return l.winpid == r.winpid && l.fh == r.fh; } - friend operator != (const fifo_reader_id_t &l, const fifo_reader_id_t &r) + friend bool operator != (const fifo_reader_id_t &l, const fifo_reader_id_t &r) { return l.winpid != r.winpid || l.fh != r.fh; }