runtime_loader: Add cast in ELF TLS to appease GCC.

Otherwise when builtins are enabled, we get class-memaccess warnings.
This commit is contained in:
Augustin Cavalier
2024-09-16 13:19:47 -04:00
parent 6863cd3038
commit 6a519848d8
+1 -1
View File
@@ -288,7 +288,7 @@ DynamicThreadVector::_ResizeVector(unsigned minimumSize)
return B_NO_MEMORY;
*fVector = (TLSBlock*)newVector;
memset(*fVector + oldSize + 1, 0, (size - oldSize) * sizeof(TLSBlock));
memset((void*)(*fVector + oldSize + 1), 0, (size - oldSize) * sizeof(TLSBlock));
if (fGeneration == NULL) {
fGeneration = new Generation;
if (fGeneration == NULL)