Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Apr 2020 07:10:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 245200] emulators/emu64 : Fails to build on FreeBSD 12.1-RELEASE-p1 powerpc 32 bit: error: narrowing conversion of '-1' from 'int' to 'char' [-Wnarrowing]
Message-ID:  <bug-245200-7788-qxG34DytCK@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-245200-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-245200-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245200

Alexey Dokuchaev <danfe@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |danfe@FreeBSD.org

--- Comment #9 from Alexey Dokuchaev <danfe@FreeBSD.org> ---
(In reply to Justin Hibbits from comment #7)
> I've run into this a lot when people set the return value of getopt()
> to a char, and compare to -1, leading to an infinite loop.
I've seen that as well and always wondered why people cannot read the manpa=
ge
to learn that getopt(3) returns an int, not signed char.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245200-7788-qxG34DytCK>