Game & Print Kits: Fix GCC 11 warnings.

This commit is contained in:
Augustin Cavalier 2021-11-17 18:45:58 -05:00
parent f7338bb6a0
commit e4f18add74
3 changed files with 25 additions and 20 deletions

View File

@ -59,7 +59,7 @@ public:
// After construction reference count is 1
Object() : fRefCount(1) { }
// dtor should be private, but ie. ObjectList requires a public dtor!
virtual ~Object() { };
virtual ~Object();
// thread-safe as long as thread that calls Acquire has already
// a reference to the object

View File

@ -618,7 +618,7 @@ BWindowScreen::_InitData(uint32 space, uint32 attributes)
if (fDebugSem < B_OK)
throw (status_t)fDebugSem;
memcpy(fPalette, screen.ColorMap()->color_list, sizeof(fPalette));
memcpy((void*)fPalette, screen.ColorMap()->color_list, sizeof(fPalette));
fActivateState = false;
fWorkState = true;

View File

@ -70,6 +70,11 @@ status_t TestForAddonExistence(const char* name, directory_which which, const ch
return err;
}
// Implementation of Object
Object::~Object() {
}
// Implementation of AutoReply
AutoReply::AutoReply(BMessage* sender, uint32 what)