1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

Fix all current build warnings in the kernel.

This commit is contained in:
Andreas Kling 2018-11-09 10:03:21 +01:00
parent e71cb1c56b
commit 47b7eeda44
10 changed files with 28 additions and 19 deletions

View file

@ -113,7 +113,6 @@ Keyboard::Keyboard()
Keyboard::~Keyboard()
{
ASSERT_NOT_REACHED();
}
bool Keyboard::hasDataAvailableForRead() const
@ -124,7 +123,7 @@ bool Keyboard::hasDataAvailableForRead() const
ssize_t Keyboard::read(byte* buffer, size_t size)
{
ssize_t nread = 0;
while (nread < size) {
while ((size_t)nread < size) {
if (m_queue.isEmpty())
break;
buffer[nread++] = m_queue.dequeue().character;
@ -132,7 +131,7 @@ ssize_t Keyboard::read(byte* buffer, size_t size)
return nread;
}
ssize_t Keyboard::write(const byte* data, size_t size)
ssize_t Keyboard::write(const byte*, size_t)
{
return 0;
}