#14217 closed bug (fixed)

BJoystick: overwriting vtable pointer by memset

Reported by: waddlesplash Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits/Device Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

src/kits/device/Joystick.cpp:66: warning: destination for this 'memset' call is a pointer to class containing a dynamic class 'BList'; vtable pointer will be overwritten [-Wdynamic-class-memaccess]

memset(fJoystickInfo, 0, sizeof(joystick_info));

http://xref.plausible.coop/source/xref/haiku/src/kits/device/Joystick.cpp#66

Change History (1)

comment:1 Changed 14 months ago by waddlesplash

Resolution: fixed
Status: newclosed

Fixed in hrev52028.

Note: See TracTickets for help on using tickets.