Opened 6 years ago

Closed 6 years ago

#14259 closed bug (fixed)

Media addon server: Suppress warnings

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

Description

https://review.haiku-os.org/#/c/haiku/+/322/

In MediaFilePlayer::MediaFilePlayer(), replace memset() with media_format.Clear() to suppress -Werror=class-memaccess. Pointed out by gcc8.

/home/haiku/haiku/haiku/src/servers/media_addon/MediaFilePlayer.cpp:75:45: 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(&fPlayFormat, 0, sizeof(fPlayFormat));
                                             ^

Change History (1)

comment:1 by waddlesplash, 6 years ago

Resolution: fixed
Status: newclosed

Merged.

Note: See TracTickets for help on using tickets.