Just looking at the log, it seems that unused-parameter error is enabled. I don't know how your pipeline works, but it's not dpkg-buildpackage, so it makes sense that the default CFLAGS (or CXXFLAGS) is set.
and it should be happy. If that fails too, a less elegant solution is to leave the if condition that uses it in, and make it return true instead of false.
But I don't think that build is important to the distro issue.
Just looking at the log, it seems that unused-parameter error is enabled. I don't know how your pipeline works, but it's not dpkg-buildpackage, so it makes sense that the default CFLAGS (or CXXFLAGS) is set.
genesys/ low.cpp: 636:76: error: unused parameter 'sensor' [-Werror= unused- parameter]
You can either change the compiler flags or change the function signature from:
bool should_ enable_ gamma(const ScanSession& session, const Genesys_Sensor& sensor)
to:
bool should_ enable_ gamma(const ScanSession& session, const Genesys_Sensor&)
and it should be happy. If that fails too, a less elegant solution is to leave the if condition that uses it in, and make it return true instead of false.
But I don't think that build is important to the distro issue.