Opened 6 years ago
Closed 6 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 |
Description
https://review.haiku-os.org/#/c/haiku/+/215
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)); ^
Note:
See TracTickets
for help on using tickets.
Merged in hrev52055. Thanks!