mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 07:45:07 +00:00
WindowServer: Fix compiler warnings.
This commit is contained in:
parent
3f0f7caa45
commit
0deade2883
5 changed files with 12 additions and 10 deletions
|
@ -82,11 +82,11 @@ void WSClientConnection::post_message(const WSAPI_ServerMessage& message, const
|
|||
struct iovec iov[2];
|
||||
int iov_count = 1;
|
||||
|
||||
iov[0].iov_base = (void*)&message;
|
||||
iov[0].iov_base = const_cast<WSAPI_ServerMessage*>(&message);
|
||||
iov[0].iov_len = sizeof(message);
|
||||
|
||||
if (!extra_data.is_empty()) {
|
||||
iov[1].iov_base = (void*)extra_data.data();
|
||||
iov[1].iov_base = const_cast<byte*>(extra_data.data());
|
||||
iov[1].iov_len = extra_data.size();
|
||||
++iov_count;
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ void WSClientConnection::post_message(const WSAPI_ServerMessage& message, const
|
|||
}
|
||||
}
|
||||
|
||||
ASSERT(nwritten == sizeof(message) + extra_data.size());
|
||||
ASSERT(nwritten == (int)(sizeof(message) + extra_data.size()));
|
||||
}
|
||||
|
||||
void WSClientConnection::notify_about_new_screen_rect(const Rect& rect)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue