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:
@@ -288,7 +288,7 @@ DynamicThreadVector::_ResizeVector(unsigned minimumSize)
|
|||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
|
|
||||||
*fVector = (TLSBlock*)newVector;
|
*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) {
|
if (fGeneration == NULL) {
|
||||||
fGeneration = new Generation;
|
fGeneration = new Generation;
|
||||||
if (fGeneration == NULL)
|
if (fGeneration == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user