Opened 2 years ago

Closed 2 years ago

#14156 closed bug (fixed)

Media kit: Suppress -Werror=class-memaccess

Reported by: mt Owned by: Barrett
Priority: normal Milestone: Unscheduled
Component: Kits/Media Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All


Cast pointer of media_format to void* (and const void* for memcpy()) to suppress -Werror=class-memaccess [1]

pointed out by gcc8.


/home/haiku/haiku/haiku/src/kits/media/AddOnManager.cpp:561:53: error: 'void* memset(void*, int, size_t)' clearing an object of type 'struct media_format' with no trivial copy-assignment; use assignment or value-initialization instead [-Werror=class-memaccess]
   memset(&info.intputFormat, 0, sizeof(media_format));

Change History (1)

comment:1 by waddlesplash, 2 years ago

Resolution: fixed
Status: newclosed

Merged in hrev52055. Thanks!

Note: See TracTickets for help on using tickets.