FDH2 / UxPlay

AirPlay Unix mirroring server
GNU General Public License v3.0
1.35k stars 72 forks source link

Failed to compile with lto #111

Closed PetrusZ closed 1 year ago

PetrusZ commented 1 year ago

Use lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing.

Got an error:

/var/tmp/portage/media-video/uxplay-1.54/work/UxPlay-1.54/renderers/video_renderer.h:53:6: error: type of ‘video_renderer_flush’ does not match original declaration [-Werror=lto-type-mismatch]

This bug is orignal discovered on bugs.gentoo.org, https://bugs.gentoo.org/860183 .

fduncanh commented 1 year ago

thanks! fixed!

( I think this empty function is never called, it was used in RPiPlay by the omx driver)