From 54d703967fc59c799545fe6dff354ff2a289c9f0 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 28 Jan 2026 10:53:26 -0600 Subject: [PATCH] cpukit/.../termios: Address -Wsign-compare warnings This warning occurs when comparing a signed variable to an unsigned one. This is frequently an int or ssize_t variable compared to a uint32_t or size_t. Sometimes the size_t is from a sizeof() use. --- cpukit/include/rtems/termiostypes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpukit/include/rtems/termiostypes.h b/cpukit/include/rtems/termiostypes.h index 5cf418a5eb..3b71281154 100644 --- a/cpukit/include/rtems/termiostypes.h +++ b/cpukit/include/rtems/termiostypes.h @@ -119,8 +119,8 @@ typedef struct rtems_termios_tty { * The canonical (cooked) character buffer */ char *cbuf; - int ccount; - int cindex; + size_t ccount; + size_t cindex; /* * Keep track of cursor (printhead) position