Remove dead code from fhandler_console.
This if is unconditionally false, so remove it. winsup/cygwin/fhandler_console.cc: In member function 'bool dev_console::fillin(HANDLE)': winsup/cygwin/fhandler_console.cc:740:22: error: self-comparison always evaluates to false [-Werror=tautological-compare] if (b.dwSize.Y != b.dwSize.Y || b.dwSize.X != b.dwSize.X) ~~~~~~~~~~~^~~~~~~~~~~~~ winsup/cygwin/fhandler_console.cc:740:50: error: self-comparison always evaluates to false [-Werror=tautological-compare] if (b.dwSize.Y != b.dwSize.Y || b.dwSize.X != b.dwSize.X) ~~~~~~~~~~~^~~~~~~~~~~~~ winsup/cygwin/ChangeLog * fhandle_console.cc (fillin): remove dead code Signed-off-by: Peter Foley <pefoley2@pefoley.com>
This commit is contained in:
parent
c0b6fc54b1
commit
922e21a3ea
|
@ -746,8 +746,6 @@ dev_console::fillin (HANDLE h)
|
|||
{
|
||||
dwWinSize.Y = 1 + b.srWindow.Bottom - b.srWindow.Top;
|
||||
dwWinSize.X = 1 + b.srWindow.Right - b.srWindow.Left;
|
||||
if (b.dwSize.Y != b.dwSize.Y || b.dwSize.X != b.dwSize.X)
|
||||
dwEnd.X = dwEnd.Y = 0;
|
||||
if (b.dwCursorPosition.Y > dwEnd.Y
|
||||
|| (b.dwCursorPosition.Y >= dwEnd.Y && b.dwCursorPosition.X > dwEnd.X))
|
||||
dwEnd = b.dwCursorPosition;
|
||||
|
|
Loading…
Reference in New Issue