Skip to content

Lots of warnings like "overrides a member function but is not marked 'override'" #1334

@pozirk

Description

@pozirk

Hello,
The latest version of hxcpp generates a lot of warnings while trying to build for Android, project builds fine though.
Don't know when it started, but v4.3.98 didn't have these warnings.
Any help?
Thank you.

644 | bool _hx_isInstanceOf(int inClassId)
| ^
c:/HaxeToolkit/haxe/lib/hxcpp/4,3,140/include/hx/Anon.h:199:17: note: in instantiation of template class 'Array_obj' requested here
199 | outFields->push(name0);
| ^
c:/HaxeToolkit/haxe/lib/hxcpp/4,3,140/include/Array.h:260:4: note: overridden virtual function is here
260 | HX_IS_INSTANCE_OF enum { _hx_ClassId = hx::clsIdArrayBase };
| ^
c:/HaxeToolkit/haxe/lib/hxcpp/4,3,140/include/hx/Macros.h:55:32: note: expanded from macro 'HX_IS_INSTANCE_OF'
55 | #define HX_IS_INSTANCE_OF bool _hx_isInstanceOf(int inClassId) { return inClassId==1 || inClassId==(int)_hx_ClassId; }
| ^
In file included from c:/HaxeToolkit/haxe/lib/hxcpp/4,3,140/include/hxcpp.h:344:
c:/HaxeToolkit/haxe/lib/hxcpp/4,3,140/include/Array.h:649:17: warning: 'AllocAtomic' _GetItem[-Winconsistent-missing-override]
649 | virtual bool AllocAtomic() const { return !hx::ContainsPointers<ELEM
>(); }
| ^
c:/HaxeToolkit/haxe/lib/hxcpp/4,3,140/include/Array.h:458:17: note: overridden virtual function is here
458 | virtual bool AllocAtomic() const { return false; }
| ^
c:/HaxeToolkit/haxe/lib/hxcpp/4,3,140/include/Array.h:651:20: warning: '__GetItem' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
651 | virtual Dynamic __GetItem(int inIndex) const { return __get(inIndex); }
| ^
c:/HaxeToolkit/haxe/lib/hxcpp/4,3,140/include/hx/Object.h:239:20: note: overridden virtual function is here
239 | virtual Dynamic __GetItem(int inIndex) const;
| ^
In file included from c:/HaxeToolkit/haxe/lib/hxcpp/4,3,140/include/hxcpp.h:344:
c:/HaxeToolkit/haxe/lib/hxcpp/4,3,140/include/Array.h:652:20: warning: '__SetItem' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
652 | virtual Dynamic __SetItem(int inIndex,Dynamic inValue)
| ^
c:/HaxeToolkit/haxe/lib/hxcpp/4,3,140/include/hx/Object.h:240:20: note: overridden virtual function is here
240 | virtual Dynamic __SetItem(int inIndex,Dynamic inValue);
| ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions