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:
Paul Cornett
2020-02-02 22:50:32 -08:00
parent 6724f8c052
commit 948ddc6e0f
115 changed files with 273 additions and 303 deletions

View File

@@ -945,7 +945,7 @@ static wxString wxCreateTempImpl(
wxCharBuffer buf(path.fn_str());
// cast is safe because the string length doesn't change
int fdTemp = mkstemp( (char*)(const char*) buf );
int fdTemp = mkstemp(const_cast<char*>(static_cast<const char*>(buf)));
if ( fdTemp == -1 )
{
// this might be not necessary as mkstemp() on most systems should have