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:
@@ -269,7 +269,7 @@ static void wxFSEventCallback(ConstFSEventStreamRef WXUNUSED(streamRef), void *c
|
||||
static void wxDeleteContext(const void* context)
|
||||
{
|
||||
wxFSEventWatcherContext* watcherContext =
|
||||
(wxFSEventWatcherContext*) context;
|
||||
static_cast<wxFSEventWatcherContext*>(const_cast<void*>(context));
|
||||
delete watcherContext;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user