Game & Print Kits: Fix GCC 11 warnings.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user