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
+1 -1
View File
@@ -59,7 +59,7 @@ public:
// After construction reference count is 1 // After construction reference count is 1
Object() : fRefCount(1) { } Object() : fRefCount(1) { }
// dtor should be private, but ie. ObjectList requires a public dtor! // 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 // thread-safe as long as thread that calls Acquire has already
// a reference to the object // a reference to the object
+1 -1
View File
@@ -618,7 +618,7 @@ BWindowScreen::_InitData(uint32 space, uint32 attributes)
if (fDebugSem < B_OK) if (fDebugSem < B_OK)
throw (status_t)fDebugSem; throw (status_t)fDebugSem;
memcpy(fPalette, screen.ColorMap()->color_list, sizeof(fPalette)); memcpy((void*)fPalette, screen.ColorMap()->color_list, sizeof(fPalette));
fActivateState = false; fActivateState = false;
fWorkState = true; fWorkState = true;
+5
View File
@@ -70,6 +70,11 @@ status_t TestForAddonExistence(const char* name, directory_which which, const ch
return err; return err;
} }
// Implementation of Object
Object::~Object() {
}
// Implementation of AutoReply // Implementation of AutoReply
AutoReply::AutoReply(BMessage* sender, uint32 what) AutoReply::AutoReply(BMessage* sender, uint32 what)