netfs: Enable Werror for netfs.
* Fix warnings by adding casts and intialization of an on-stack allocated array. * Activate Werror for netfs. * Part of ticket #9460 Change-Id: I91c603232e5d96a3ceed60fcc0be45b64df6b7e2 Reviewed-on: https://review.haiku-os.org/c/haiku/+/10340 Haiku-Format: Haiku-format Bot <[email protected]> Reviewed-by: Adrien Destugues <[email protected]> Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
9d6be94632
commit
6da42994d0
@@ -286,7 +286,7 @@ void
|
||||
_VECTOR_CLASS_NAME::_MoveItems(Value* items, int32 offset, int32 count)
|
||||
{
|
||||
if (count > 0 && offset != 0)
|
||||
memmove(items + offset, items, count * sizeof(Value));
|
||||
memmove((void*)(items + offset), items, count * sizeof(Value));
|
||||
}
|
||||
|
||||
// Insert
|
||||
@@ -722,7 +722,7 @@ _VECTOR_CLASS_NAME::_Resize(size_t count)
|
||||
newSize = ((newSize - 1) / fChunkSize + 1) * fChunkSize;
|
||||
// resize if necessary
|
||||
if ((size_t)newSize != fCapacity) {
|
||||
Value* newItems = (Value*)realloc(fItems, newSize * sizeof(Value));
|
||||
Value* newItems = (Value*)realloc((void*)fItems, newSize * sizeof(Value));
|
||||
if (newItems) {
|
||||
fItems = newItems;
|
||||
fCapacity = newSize;
|
||||
|
||||
Reference in New Issue
Block a user