Fix warnings.

This commit is contained in:
Sam Clegg 2013-04-25 09:12:46 -07:00
parent 60e4730122
commit 924d271410
5 changed files with 4 additions and 5 deletions

View File

@ -71,7 +71,7 @@ typedef struct _TimelineVtable {
void _Timeline_init (Timeline* self, //
void (*dispose) (Timeline* self), //
void (*apply) (const Timeline* self, Skeleton* skeleton, float time, float alpha)) {
CONST_CAST(_TimelineVtable*, self->vtable) = NEW(_TimelineVtable);
CONST_CAST(void*, self->vtable) = NEW(_TimelineVtable);
VTABLE(Timeline, self) ->dispose = dispose;
VTABLE(Timeline, self) ->apply = apply;
}

View File

@ -119,7 +119,7 @@ void AnimationStateData_setMix (AnimationStateData* self, Animation* from, Anima
if (!fromEntry) {
fromEntry = _FromEntry_create(from);
fromEntry->next = (_FromEntry*)self->entries;
CONST_CAST(_FromEntry*, self->entries) = fromEntry;
CONST_CAST(void*, self->entries) = fromEntry;
}
_ToEntry* toEntry = _ToEntry_create(to, duration);
toEntry->next = fromEntry->toEntries;

View File

@ -36,7 +36,7 @@ typedef struct _AttachmentVtable {
void _Attachment_init (Attachment* self, const char* name, AttachmentType type, //
void (*dispose) (Attachment* self)) {
CONST_CAST(_AttachmentVtable*, self->vtable) = NEW(_AttachmentVtable);
CONST_CAST(void*, self->vtable) = NEW(_AttachmentVtable);
VTABLE(Attachment, self) ->dispose = dispose;
MALLOC_STR(self->name, name);

View File

@ -37,7 +37,7 @@ typedef struct _AttachmentLoaderVtable {
void _AttachmentLoader_init (AttachmentLoader* self, //
void (*dispose) (AttachmentLoader* self), //
Attachment* (*newAttachment) (AttachmentLoader* self, Skin* skin, AttachmentType type, const char* name)) {
CONST_CAST(_AttachmentLoaderVtable*, self->vtable) = NEW(_AttachmentLoaderVtable);
CONST_CAST(void*, self->vtable) = NEW(_AttachmentLoaderVtable);
VTABLE(AttachmentLoader, self) ->dispose = dispose;
VTABLE(AttachmentLoader, self) ->newAttachment = newAttachment;
}

View File

@ -77,7 +77,6 @@ void* cocos_main(void* arg)
downloadFiles(instance->m_runner, filenames, sizeof(filenames)/sizeof(char*));
#endif
CCEGLView* eglView = CCEGLView::sharedOpenGLView();
fprintf(stderr, "calling application->run\n");
int rtn = CCApplication::sharedApplication()->run();
fprintf(stderr, "app run returned: %d\n", rtn);