Comment 29 for bug 1327801

Revision history for this message
Pat Suwalski (pat-suwalski) wrote :

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.