Opened 7 years ago

Closed 7 years ago

#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:
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 by waddlesplash, 7 years ago

Resolution: fixed
Status: newclosed

Fixed in hrev52028.

Note: See TracTickets for help on using tickets.