Eliminate -Wcast-qual warnings with GCC and Clang
Use const_cast, mutable, and various other changes to avoid -Wcast-qual
This commit is contained in:
@@ -520,7 +520,7 @@ size_t wxPipeOutputStream::OnSysWrite(const void *buffer, size_t len)
|
||||
if ( !chunkWritten )
|
||||
break;
|
||||
|
||||
buffer = (char *)buffer + chunkWritten;
|
||||
buffer = static_cast<const char*>(buffer) + chunkWritten;
|
||||
totalWritten += chunkWritten;
|
||||
len -= chunkWritten;
|
||||
}
|
||||
|
Reference in New Issue
Block a user