mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-02-06 13:41:34 +00:00
bsps/sparc: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one. This addresses warnings that only occurred on 64-bit targets. For the ones which only appeared on 64-bit targets, the cause was frequently a mismatch when comparing a combination off_t, ssize_t, and int.
This commit is contained in:
committed by
Gedare Bloom
parent
e5fd83ed1f
commit
bcb814451c
@@ -292,7 +292,7 @@ static ssize_t erc32_console_write_support_polled(
|
||||
size_t len
|
||||
)
|
||||
{
|
||||
int nwrite = 0;
|
||||
size_t nwrite = 0;
|
||||
|
||||
while (nwrite < len) {
|
||||
console_outbyte_polled( minor, *buf++ );
|
||||
|
||||
@@ -283,7 +283,7 @@ void console_outbyte_interrupt(
|
||||
|
||||
static ssize_t console_write_support (int minor, const char *buf, size_t len)
|
||||
{
|
||||
int nwrite = 0;
|
||||
size_t nwrite = 0;
|
||||
|
||||
while (nwrite < len) {
|
||||
#if (CONSOLE_USE_INTERRUPTS)
|
||||
|
||||
Reference in New Issue
Block a user