Merge branch 'build-fixes' into 'master'

lib: Fix a -Wcast-function-type warning with new gcc versions

See merge request !5
1 job for master in 2 minutes and 27 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Build
passed #85767677
build-check

00:02:27