[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]
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Apr 3 07:12:41 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245200
Alexey Dokuchaev <danfe at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |danfe at FreeBSD.org
--- Comment #9 from Alexey Dokuchaev <danfe at 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 manpage
to learn that getopt(3) returns an int, not signed char.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list