In file included from /usr/include/QtGStreamer/QGlib/Connect:1:0, from /home/alin/lavello/ktp-call-ui/libktpcall/private/sink-manager.cpp:26: /usr/include/QtGStreamer/QGlib/connect.h: In instantiation of ‘typename boost::enable_if<boost::is_integral<T>, unsigned int>::type QGlib::Private::hashMfp(const T&) [with T = int; typename boost::enable_if<boost::is_integral<T>, unsigned int>::type = unsigned int]’: /usr/include/QtGStreamer/QGlib/connect.h:303:102: required from ‘bool QGlib::disconnect(void*, const char*, void*, T) [with T = int]’ /home/alin/lavello/ktp-call-ui/libktpcall/private/sink-manager.cpp:59:45: required from here /usr/include/QtGStreamer/QGlib/connect.h:284:1: error: unused parameter ‘mfp’ [-Werror=unused-parameter] cc1plus: all warnings being treated as errors make[2]: *** [libktpcall/CMakeFiles/ktpcall.dir/private/sink-manager.o] Error 1 make[2]: Leaving directory `/home/alin/lavello/ktp-call-ui/build' make[1]: *** [libktpcall/CMakeFiles/ktpcall.dir/all] Error 2 make[1]: Leaving directory `/home/alin/lavello/ktp-call-ui/build' make: *** [all] Error 2 Reproducible: Always
This is a warning not coming from KTp but rather QGlib itself. The code in QGlib is: template <typename T> inline typename boost::enable_if< boost::is_integral<T>, uint >::type hashMfp(const T & mfp) { Q_ASSERT(mfp == 0); return 0; } so the mfp variable is indeed unused, though only when build in release mode. We can't change code in QGlib, should be reported upstream.