Subject: | Curses-1.36 bug report |
Date: | Fri, 13 Jan 2017 15:01:07 +0000 |
To: | "bug-Curses [...] rt.cpan.org" <bug-Curses [...] rt.cpan.org> |
From: | David Binderman <dcb314 [...] hotmail.com> |
Hello there,
1.
CursesFun.c:3849:39: warning: ?: using integer constants in boolean context [-Wint-in-bool-context]
Source code is
bool ret = c_mret == ERR ? ERR : wenclose(win, y, x);
Suggest add ( and ) to make code clear. Maybe better code
bool ret = c_mret == (ERR ? ERR : wenclose(win, y, x));
2.
CursesFun.c:3872:39: warning: ?: using integer constants in boolean context [-Wint-in-bool-context]
Duplicate.
Regards
David Binderman