Source: ukui-media
Version: 3.0.3-1
Severity: serious
Tags: ftbfs

ukui-media fails to build from source. A parallel=1 build ends with:

| g++ -c -pipe -std=c++11 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 -std=gnu++11 -pthread -pthread -pthread -Wall -Wextra 
-D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_SVG_LIB -DQT_WIDGETS_LIB 
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -D_REENTRANT 
-DQT_NO_KEYWORDS -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_XML_LIB 
-DQT_NETWORK_LIB -DQT_CORE_LIB -I../../ukui-volume-control-applet-qt -I. 
-I../../ukui-volume-control-applet-qt -I../QtSingleApplication 
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include 
-I/usr/include/mate-mixer -I/usr/include/x86_64-linux-gnu/qt5/QGSettings 
-I/usr/include/x86_64-linux-gnu/qt5/QtSvg -I/usr/include/x86_64-linux-gnu/qt5 
-I/usr/include/x86_64-linux-gnu/qt5/QtWidgets 
-I/usr/include/x86_64-linux-gnu/qt5/QtGui 
-I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/libmount 
-I/usr/include/blkid -I/usr/include/x86_64-linux-gnu/qt5/QtMultimedia 
-I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -I/usr/include/dconf 
-I/usr/include/KF5/KWindowSystem -I/usr/include/x86_64-linux-gnu/qt5/QtDBus 
-I/usr/include/x86_64-linux-gnu/qt5/QtXml -I. 
-I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o 
ukmedia_device_switch_widget.o ../ukmedia_device_switch_widget.cpp
| ../ukmedia_device_switch_widget.cpp: In member function ‘virtual bool 
UkmediaTrayIcon::event(QEvent*)’:
| ../ukmedia_device_switch_widget.cpp:98:22: warning: ‘int QWheelEvent::delta() 
const’ is deprecated: Use angleDelta() [-Wdeprecated-declarations]
|    98 |         if (e->delta() > 0) {
|       |                      ^
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/QMouseEvent:1,
|                  from ../ukmedia_device_volume_widget.h:25,
|                  from ../ukmedia_device_switch_widget.h:23,
|                  from ../ukmedia_device_switch_widget.cpp:18:
| /usr/include/x86_64-linux-gnu/qt5/QtGui/qevent.h:219:16: note: declared here
|   219 |     inline int delta() const  { return qt4D; }
|       |                ^~~~~
| ../ukmedia_device_switch_widget.cpp:101:27: warning: ‘int 
QWheelEvent::delta() const’ is deprecated: Use angleDelta() 
[-Wdeprecated-declarations]
|   101 |         else if (e->delta() < 0) {
|       |                           ^
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/QMouseEvent:1,
|                  from ../ukmedia_device_volume_widget.h:25,
|                  from ../ukmedia_device_switch_widget.h:23,
|                  from ../ukmedia_device_switch_widget.cpp:18:
| /usr/include/x86_64-linux-gnu/qt5/QtGui/qevent.h:219:16: note: declared here
|   219 |     inline int delta() const  { return qt4D; }
|       |                ^~~~~
| ../ukmedia_device_switch_widget.cpp: In member function ‘virtual void 
DeviceSwitchWidget::paintEvent(QPaintEvent*)’:
| ../ukmedia_device_switch_widget.cpp:115:50: warning: unused parameter ‘event’ 
[-Wunused-parameter]
|   115 | void DeviceSwitchWidget::paintEvent(QPaintEvent *event)
|       |                                     ~~~~~~~~~~~~~^~~~~
| ../ukmedia_device_switch_widget.cpp: In lambda function:
| ../ukmedia_device_switch_widget.cpp:467:18: warning: variable ‘retval’ set 
but not used [-Wunused-but-set-variable]
|   467 |             gint retval;
|       |                  ^~~~~~
| ../ukmedia_device_switch_widget.cpp: In member function ‘void 
DeviceSwitchWidget::initSystemVolume()’:
| ../ukmedia_device_switch_widget.cpp:635:18: warning: unused variable 
‘neddInit’ [-Wunused-variable]
|   635 |             bool neddInit = 
m_pInitSystemVolumeSetting->get(MIC_VOLUME).toBool();
|       |                  ^~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In member function ‘void 
DeviceSwitchWidget::initHuaweiAudio(DeviceSwitchWidget*)’:
| ../ukmedia_device_switch_widget.cpp:642:62: warning: unused parameter ‘w’ 
[-Wunused-parameter]
|   642 | void DeviceSwitchWidget::initHuaweiAudio(DeviceSwitchWidget *w)
|       |                                          ~~~~~~~~~~~~~~~~~~~~^
| ../ukmedia_device_switch_widget.cpp: In member function ‘void 
DeviceSwitchWidget::jumpControlPanelSlot()’:
| ../ukmedia_device_switch_widget.cpp:1072:46: warning: ‘void 
QProcess::start(const QString&, QIODevice::OpenMode)’ is deprecated: Use 
QProcess::start(const QString &program, const QStringList &arguments,OpenMode 
mode = ReadWrite) instead [-Wdeprecated-declarations]
|  1072 |     m_process->start("ukui-control-center -s");
|       |                                              ^
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QProcess:1,
|                  from ../ukmedia_device_switch_widget.h:41,
|                  from ../ukmedia_device_switch_widget.cpp:18:
| /usr/include/x86_64-linux-gnu/qt5/QtCore/qprocess.h:168:10: note: declared 
here
|   168 |     void start(const QString &command, OpenMode mode = ReadWrite);
|       |          ^~~~~
| ../ukmedia_device_switch_widget.cpp: In member function ‘void 
DeviceSwitchWidget::fontSizeChangedSlot(const QString&)’:
| ../ukmedia_device_switch_widget.cpp:1303:61: warning: unused parameter 
‘themeStr’ [-Wunused-parameter]
|  1303 | void DeviceSwitchWidget::fontSizeChangedSlot(const QString &themeStr)
|       |                                              ~~~~~~~~~~~~~~~^~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In member function ‘void 
DeviceSwitchWidget::ukuiThemeChangedSlot(const QString&)’:
| ../ukmedia_device_switch_widget.cpp:1323:62: warning: unused parameter 
‘themeStr’ [-Wunused-parameter]
|  1323 | void DeviceSwitchWidget::ukuiThemeChangedSlot(const QString &themeStr)
|       |                                               ~~~~~~~~~~~~~~~^~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In member function ‘void 
DeviceSwitchWidget::inputWidgetMuteButtonClicked()’:
| ../ukmedia_device_switch_widget.cpp:1365:9: warning: unused variable ‘volume’ 
[-Wunused-variable]
|  1365 |     int volume = mate_mixer_stream_control_get_volume(inputControl);
|       |         ^~~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::on_context_state_notify(MateMixerContext*, GParamSpec*, 
DeviceSwitchWidget*)’:
| ../ukmedia_device_switch_widget.cpp:1654:18: warning: unused variable ‘isRun’ 
[-Wunused-variable]
|  1654 |             bool isRun = 
w->m_pInitSystemVolumeSetting->get(FIRST_RUN).toBool();
|       |                  ^~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::list_device(DeviceSwitchWidget*, MateMixerContext*)’:
| ../ukmedia_device_switch_widget.cpp:1829:18: warning: variable ‘profileName’ 
set but not used [-Wunused-but-set-variable]
|  1829 |     const gchar *profileName;
|       |                  ^~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:1830:18: warning: variable ‘profileLabel’ 
set but not used [-Wunused-but-set-variable]
|  1830 |     const gchar *profileLabel;
|       |                  ^~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::add_stream(DeviceSwitchWidget*, MateMixerStream*, 
MateMixerContext*)’:
| ../ukmedia_device_switch_widget.cpp:1913:26: warning: variable ‘swt’ set but 
not used [-Wunused-but-set-variable]
|  1913 |         MateMixerSwitch *swt;
|       |                          ^~~
| ../ukmedia_device_switch_widget.cpp:1881:18: warning: variable ‘label’ set 
but not used [-Wunused-but-set-variable]
|  1881 |     const gchar *label = "";
|       |                  ^~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::add_application_control(DeviceSwitchWidget*, 
MateMixerStreamControl*, const gchar*, MateMixerDirection)’:
| ../ukmedia_device_switch_widget.cpp:1981:11: warning: variable ‘app_count’ 
set but not used [-Wunused-but-set-variable]
|  1981 |     guint app_count;
|       |           ^~~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In lambda function:
| ../ukmedia_device_switch_widget.cpp:2529:17: warning: unused variable ‘font’ 
[-Wunused-variable]
|  2529 |             int font = 
w->m_pFontSetting->get("system-font-size").toInt();
|       |                 ^~~~
| ../ukmedia_device_switch_widget.cpp: In lambda function:
| ../ukmedia_device_switch_widget.cpp:2538:13: warning: variable ‘index’ set 
but not used [-Wunused-but-set-variable]
|  2538 |         int index = -1;
|       |             ^~~~~
| ../ukmedia_device_switch_widget.cpp: In lambda function:
| ../ukmedia_device_switch_widget.cpp:2621:13: warning: variable ‘index’ set 
but not used [-Wunused-but-set-variable]
|  2621 |         int index = -1;
|       |             ^~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::app_volume_mute(MateMixerStreamControl*, QString*, 
DeviceSwitchWidget*)’:
| ../ukmedia_device_switch_widget.cpp:2793:10: warning: unused variable 
‘is_mute’ [-Wunused-variable]
|  2793 |     bool is_mute = mate_mixer_stream_control_get_mute(control);
|       |          ^~~~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::add_device(DeviceSwitchWidget*, MateMixerDevice*)’:
| ../ukmedia_device_switch_widget.cpp:2923:18: warning: variable ‘pLabel’ set 
but not used [-Wunused-but-set-variable]
|  2923 |     const gchar *pLabel;
|       |                  ^~~~~~
| ../ukmedia_device_switch_widget.cpp: In member function ‘void 
DeviceSwitchWidget::updateOutputDeviceLabel()’:
| ../ukmedia_device_switch_widget.cpp:3041:26: warning: unused variable 
‘needInit’ [-Wunused-variable]
|  3041 |                     bool needInit = 
m_pInitSystemVolumeSetting->get(PLUGIN_INIT_VOLUME).toBool();
|       |                          ^~~~~~~~
| ../ukmedia_device_switch_widget.cpp:2997:19: warning: variable ‘options’ set 
but not used [-Wunused-but-set-variable]
|  2997 |     const GList  *options ;
|       |                   ^~~~~~~
| ../ukmedia_device_switch_widget.cpp: In member function ‘void 
DeviceSwitchWidget::updateInputDeviceLabel()’:
| ../ukmedia_device_switch_widget.cpp:3150:22: warning: unused variable 
‘needInit’ [-Wunused-variable]
|  3150 |                 bool needInit = 
m_pInitSystemVolumeSetting->get(PLUGIN_INIT_VOLUME).toBool();
|       |                      ^~~~~~~~
| ../ukmedia_device_switch_widget.cpp:3154:26: warning: unused variable 
‘setHeadset’ [-Wunused-variable]
|  3154 |                     bool setHeadset = 
m_pInitSystemVolumeSetting->get(HEADSET_MIC).toBool();
|       |                          ^~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:3167:26: warning: unused variable 
‘setRearMic’ [-Wunused-variable]
|  3167 |                     bool setRearMic = 
m_pInitSystemVolumeSetting->get(REAR_MIC).toBool();
|       |                          ^~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:3180:26: warning: unused variable 
‘setLinein’ [-Wunused-variable]
|  3180 |                     bool setLinein = 
m_pInitSystemVolumeSetting->get(LINEIN).toBool();
|       |                          ^~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:3121:19: warning: variable ‘inputOptions’ 
set but not used [-Wunused-but-set-variable]
|  3121 |     const GList  *inputOptions ;
|       |                   ^~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::onOutputSwitchActiveOptionNotify(MateMixerSwitch*, 
GParamSpec*, DeviceSwitchWidget*)’:
| ../ukmedia_device_switch_widget.cpp:3223:18: warning: variable 
‘outputPortLabel’ set but not used [-Wunused-but-set-variable]
|  3223 |     const gchar *outputPortLabel = nullptr;
|       |                  ^~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:3219:95: warning: unused parameter 
‘pspec’ [-Wunused-parameter]
|  3219 | void DeviceSwitchWidget::onOutputSwitchActiveOptionNotify 
(MateMixerSwitch *swtch,GParamSpec *pspec,DeviceSwitchWidget *w)
|       |                                                                       
            ~~~~~~~~~~~~^~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::onInputSwitchActiveOptionNotify(MateMixerSwitch*, 
GParamSpec*, DeviceSwitchWidget*)’:
| ../ukmedia_device_switch_widget.cpp:3342:94: warning: unused parameter 
‘pspec’ [-Wunused-parameter]
|  3342 | void DeviceSwitchWidget::onInputSwitchActiveOptionNotify 
(MateMixerSwitch *swtch,GParamSpec *pspec,DeviceSwitchWidget *w)
|       |                                                                       
           ~~~~~~~~~~~~^~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::onDeviceProfileActiveOptionNotify(MateMixerDeviceSwitch*, 
GParamSpec*, DeviceSwitchWidget*)’:
| ../ukmedia_device_switch_widget.cpp:3439:22: warning: variable ‘device’ set 
but not used [-Wunused-but-set-variable]
|  3439 |     MateMixerDevice *device;
|       |                      ^~~~~~
| ../ukmedia_device_switch_widget.cpp:3437:102: warning: unused parameter 
‘pspec’ [-Wunused-parameter]
|  3437 | void DeviceSwitchWidget::onDeviceProfileActiveOptionNotify 
(MateMixerDeviceSwitch *swtch,GParamSpec *pspec,DeviceSwitchWidget *w)
|       |                                                                       
                   ~~~~~~~~~~~~^~~~~
| ../ukmedia_device_switch_widget.cpp: In member function ‘MateMixerSwitch* 
DeviceSwitchWidget::findDeviceProfileSwitch(DeviceSwitchWidget*, 
MateMixerDevice*)’:
| ../ukmedia_device_switch_widget.cpp:3451:18: warning: variable ‘profileLabel’ 
set but not used [-Wunused-but-set-variable]
|  3451 |     const gchar *profileLabel = nullptr;
|       |                  ^~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::update_icon_input(DeviceSwitchWidget*, MateMixerStream*)’:
| ../ukmedia_device_switch_widget.cpp:3663:57: warning: comparison with string 
literal results in unspecified behavior [-Waddress]
|  3663 |     if (inputControlName != nullptr && inputControlName != 
"auto_null.monitor") {
|       |                                        
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::on_stream_control_volume_notify(MateMixerStreamControl*, 
GParamSpec*, DeviceSwitchWidget*)’:
| ../ukmedia_device_switch_widget.cpp:4096:22: warning: variable ‘desc’ set but 
not used [-Wunused-but-set-variable]
|  4096 |         const gchar *desc = NULL;
|       |                      ^~~~
| ../ukmedia_device_switch_widget.cpp:4097:14: warning: unused variable 
‘retval’ [-Wunused-variable]
|  4097 |         gint retval;
|       |              ^~~~~~
| ../ukmedia_device_switch_widget.cpp:4121:22: warning: unused variable 
‘eventId’ [-Wunused-variable]
|  4121 |         const gchar *eventId =id;
|       |                      ^~~~~~~
| ../ukmedia_device_switch_widget.cpp:4009:22: warning: unused variable 
‘outputStream’ [-Wunused-variable]
|  4009 |     MateMixerStream *outputStream = 
mate_mixer_context_get_default_output_stream(w->context);
|       |                      ^~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:4010:22: warning: unused variable 
‘inputStream’ [-Wunused-variable]
|  4010 |     MateMixerStream *inputStream = 
mate_mixer_context_get_default_input_stream(w->context);
|       |                      ^~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:4036:13: warning: variable ‘decibel’ set 
but not used [-Wunused-but-set-variable]
|  4036 |     gdouble decibel = 0.0;
|       |             ^~~~~~~
| ../ukmedia_device_switch_widget.cpp: In member function ‘void 
DeviceSwitchWidget::handleTimeout()’:
| ../ukmedia_device_switch_widget.cpp:4148:18: warning: variable ‘retval’ set 
but not used [-Wunused-but-set-variable]
|  4148 |             gint retval;
|       |                  ^~~~~~
| ../ukmedia_device_switch_widget.cpp:4186:14: warning: variable ‘retval’ set 
but not used [-Wunused-but-set-variable]
|  4186 |         gint retval;
|       |              ^~~~~~
| ../ukmedia_device_switch_widget.cpp: In member function ‘void 
DeviceSwitchWidget::setHeadsetPort(QString)’:
| ../ukmedia_device_switch_widget.cpp:4229:18: warning: variable 
‘outputPortLabel’ set but not used [-Wunused-but-set-variable]
|  4229 |     const gchar *outputPortLabel;
|       |                  ^~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In member function ‘MateMixerSwitch* 
DeviceSwitchWidget::findStreamPortSwitch(DeviceSwitchWidget*, 
MateMixerStream*)’:
| ../ukmedia_device_switch_widget.cpp:4324:80: warning: unused parameter 
‘widget’ [-Wunused-parameter]
|  4324 | MateMixerSwitch* DeviceSwitchWidget::findStreamPortSwitch 
(DeviceSwitchWidget *widget,MateMixerStream *stream)
|       |                                                            
~~~~~~~~~~~~~~~~~~~~^~~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::update_output_settings(DeviceSwitchWidget*, 
MateMixerStreamControl*)’:
| ../ukmedia_device_switch_widget.cpp:4357:22: warning: unused variable 
‘stream’ [-Wunused-variable]
|  4357 |     MateMixerStream *stream = 
mate_mixer_stream_control_get_stream(control);
|       |                      ^~~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::update_output_stream_list(DeviceSwitchWidget*, 
MateMixerStream*)’:
| ../ukmedia_device_switch_widget.cpp:4425:18: warning: variable ‘name’ set but 
not used [-Wunused-but-set-variable]
|  4425 |     const gchar *name = nullptr;
|       |                  ^~~~
| ../ukmedia_device_switch_widget.cpp:4426:18: warning: variable ‘label’ set 
but not used [-Wunused-but-set-variable]
|  4426 |     const gchar *label = nullptr;
|       |                  ^~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::bar_set_stream_control(DeviceSwitchWidget*, 
MateMixerDirection, MateMixerStreamControl*)’:
| ../ukmedia_device_switch_widget.cpp:4455:18: warning: variable ‘name’ set but 
not used [-Wunused-but-set-variable]
|  4455 |     const gchar *name;
|       |                  ^~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::ext_stream_restore_read_cb(pa_context*, const 
pa_ext_stream_restore_info*, int, void*)’:
| ../ukmedia_device_switch_widget.cpp:4931:25: warning: unused variable ‘w’ 
[-Wunused-variable]
|  4931 |     DeviceSwitchWidget *w = 
static_cast<DeviceSwitchWidget*>(userdata);
|       |                         ^
| ../ukmedia_device_switch_widget.cpp:4929:100: warning: unused parameter ‘i’ 
[-Wunused-parameter]
|  4929 | void DeviceSwitchWidget::ext_stream_restore_read_cb(pa_context 
*,const pa_ext_stream_restore_info *i,int eol,void *userdata)
|       |                                                                  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::subscribe_cb(pa_context*, pa_subscription_event_type_t, 
uint32_t, void*)’:
| ../ukmedia_device_switch_widget.cpp:4986:29: warning: comparison of integer 
expressions of different signedness: ‘const int’ and ‘uint32_t’ {aka ‘unsigned 
int’} [-Wsign-compare]
|  4986 |                 if(it.key() == index)
|       |                    ~~~~~~~~~^~~~~~~~
| ../ukmedia_device_switch_widget.cpp:4996:30: warning: comparison of integer 
expressions of different signedness: ‘const int’ and ‘uint32_t’ {aka ‘unsigned 
int’} [-Wsign-compare]
|  4996 |                 if (it.key() == index) {
|       |                     ~~~~~~~~~^~~~~~~~
| ../ukmedia_device_switch_widget.cpp:5005:46: warning: comparison of integer 
expressions of different signedness: ‘const int’ and ‘uint32_t’ {aka ‘unsigned 
int’} [-Wsign-compare]
|  5005 |                 if (profilePriorityMap.key() == index) {
|       |                     ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
| ../ukmedia_device_switch_widget.cpp:5015:29: warning: comparison of integer 
expressions of different signedness: ‘const int’ and ‘uint32_t’ {aka ‘unsigned 
int’} [-Wsign-compare]
|  5015 |                 if(it.key() == index)
|       |                    ~~~~~~~~~^~~~~~~~
| ../ukmedia_device_switch_widget.cpp:5025:29: warning: comparison of integer 
expressions of different signedness: ‘const int’ and ‘uint32_t’ {aka ‘unsigned 
int’} [-Wsign-compare]
|  5025 |                 if(it.key() == index)
|       |                    ~~~~~~~~~^~~~~~~~
| ../ukmedia_device_switch_widget.cpp:5034:29: warning: comparison of integer 
expressions of different signedness: ‘const int’ and ‘uint32_t’ {aka ‘unsigned 
int’} [-Wsign-compare]
|  5034 |                 if(it.key() == index)
|       |                    ~~~~~~~~~^~~~~~~~
| ../ukmedia_device_switch_widget.cpp:5053:29: warning: comparison of integer 
expressions of different signedness: ‘const int’ and ‘uint32_t’ {aka ‘unsigned 
int’} [-Wsign-compare]
|  5053 |                 if(it.key() == index)
|       |                    ~~~~~~~~~^~~~~~~~
| ../ukmedia_device_switch_widget.cpp:4977:27: warning: unused variable ‘o’ 
[-Wunused-variable]
|  4977 |             pa_operation *o;
|       |                           ^
| ../ukmedia_device_switch_widget.cpp: In member function ‘void 
DeviceSwitchWidget::updateCard(const pa_card_info&)’:
| ../ukmedia_device_switch_widget.cpp:5134:81: warning: ‘QMap<K, V>::iterator 
QMap<K, V>::insertMulti(const Key&, const T&) [with Key = QString; T = int]’ is 
deprecated: Use QMultiMap for maps storing multiple values with the same key. 
[-Wdeprecated-declarations]
|  5134 |         
profilePriorityMap.insertMulti((*p_profile)->name,(*p_profile)->priority);
|       |                                                                       
          ^
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:47,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/qevent.h:50,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/QMouseEvent:1,
|                  from ../ukmedia_device_volume_widget.h:25,
|                  from ../ukmedia_device_switch_widget.h:23,
|                  from ../ukmedia_device_switch_widget.cpp:18:
| /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:1362:33: note: declared here
|  1362 | typename QMap<Key, T>::iterator QMap<Key, T>::insertMulti(const Key 
&key, const T &value)
|       |                                 ^~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:5136:69: warning: ‘QMap<K, V>::iterator 
QMap<K, V>::insertMulti(const Key&, const T&) [with Key = int; T = 
QMap<QString, int>]’ is deprecated: Use QMultiMap for maps storing multiple 
values with the same key. [-Wdeprecated-declarations]
|  5136 |     cardProfilePriorityMap.insertMulti(info.index,profilePriorityMap);
|       |                                                                     ^
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:47,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/qevent.h:50,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/QMouseEvent:1,
|                  from ../ukmedia_device_volume_widget.h:25,
|                  from ../ukmedia_device_switch_widget.h:23,
|                  from ../ukmedia_device_switch_widget.cpp:18:
| /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:1362:33: note: declared here
|  1362 | typename QMap<Key, T>::iterator QMap<Key, T>::insertMulti(const Key 
&key, const T &value)
|       |                                 ^~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:5142:21: warning: comparison of integer 
expressions of different signedness: ‘const int’ and ‘const uint32_t’ {aka 
‘const unsigned int’} [-Wsign-compare]
|  5142 |         if(it.key() == info.index)
|       |            ~~~~~~~~~^~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:5186:21: warning: comparison of integer 
expressions of different signedness: ‘const int’ and ‘const uint32_t’ {aka 
‘const unsigned int’} [-Wsign-compare]
|  5186 |         if(it.key() == info.index)
|       |            ~~~~~~~~~^~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:5206:21: warning: comparison of integer 
expressions of different signedness: ‘const int’ and ‘const uint32_t’ {aka 
‘const unsigned int’} [-Wsign-compare]
|  5206 |         if(it.key() == info.index)
|       |            ~~~~~~~~~^~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:5216:21: warning: comparison of integer 
expressions of different signedness: ‘const int’ and ‘const uint32_t’ {aka 
‘const unsigned int’} [-Wsign-compare]
|  5216 |         if(it.key() == info.index)
|       |            ~~~~~~~~~^~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:5298:60: warning: ‘QMap<K, V>::iterator 
QMap<K, V>::insertMulti(const Key&, const T&) [with Key = int; T = QString]’ is 
deprecated: Use QMultiMap for maps storing multiple values with the same key. 
[-Wdeprecated-declarations]
|  5298 |             outputPortNameMap.insertMulti(info.index,p.name);
|       |                                                            ^
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:47,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/qevent.h:50,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/QMouseEvent:1,
|                  from ../ukmedia_device_volume_widget.h:25,
|                  from ../ukmedia_device_switch_widget.h:23,
|                  from ../ukmedia_device_switch_widget.cpp:18:
| /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:1362:33: note: declared here
|  1362 | typename QMap<Key, T>::iterator QMap<Key, T>::insertMulti(const Key 
&key, const T &value)
|       |                                 ^~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:5299:75: warning: ‘QMap<K, V>::iterator 
QMap<K, V>::insertMulti(const Key&, const T&) [with Key = int; T = QString]’ is 
deprecated: Use QMultiMap for maps storing multiple values with the same key. 
[-Wdeprecated-declarations]
|  5299 |             
outputPortLabelMap.insertMulti(info.index,p.description.data());
|       |                                                                       
    ^
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:47,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/qevent.h:50,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/QMouseEvent:1,
|                  from ../ukmedia_device_volume_widget.h:25,
|                  from ../ukmedia_device_switch_widget.h:23,
|                  from ../ukmedia_device_switch_widget.cpp:18:
| /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:1362:33: note: declared here
|  1362 | typename QMap<Key, T>::iterator QMap<Key, T>::insertMulti(const Key 
&key, const T &value)
|       |                                 ^~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:5304:81: warning: ‘QMap<K, V>::iterator 
QMap<K, V>::insertMulti(const Key&, const T&) [with Key = QString; T = 
QString]’ is deprecated: Use QMultiMap for maps storing multiple values with 
the same key. [-Wdeprecated-declarations]
|  5304 |                 
profileNameMap.insertMulti(p.description.data(),p_profile.data());
|       |                                                                       
          ^
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:47,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/qevent.h:50,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/QMouseEvent:1,
|                  from ../ukmedia_device_volume_widget.h:25,
|                  from ../ukmedia_device_switch_widget.h:23,
|                  from ../ukmedia_device_switch_widget.cpp:18:
| /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:1362:33: note: declared here
|  1362 | typename QMap<Key, T>::iterator QMap<Key, T>::insertMulti(const Key 
&key, const T &value)
|       |                                 ^~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:5306:66: warning: ‘QMap<K, V>::iterator 
QMap<K, V>::insertMulti(const Key&, const T&) [with Key = int; T = 
QList<QString>]’ is deprecated: Use QMultiMap for maps storing multiple values 
with the same key. [-Wdeprecated-declarations]
|  5306 |             cardProfileMap.insertMulti(info.index,portProfileName);
|       |                                                                  ^
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:47,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/qevent.h:50,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/QMouseEvent:1,
|                  from ../ukmedia_device_volume_widget.h:25,
|                  from ../ukmedia_device_switch_widget.h:23,
|                  from ../ukmedia_device_switch_widget.cpp:18:
| /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:1362:33: note: declared here
|  1362 | typename QMap<Key, T>::iterator QMap<Key, T>::insertMulti(const Key 
&key, const T &value)
|       |                                 ^~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:5113:17: warning: variable ‘name’ set but 
not used [-Wunused-but-set-variable]
|  5113 |     const char *name;
|       |                 ^~~~
| ../ukmedia_device_switch_widget.cpp:5114:31: warning: variable ‘icon’ set but 
not used [-Wunused-but-set-variable]
|  5114 |     const char *description, *icon;
|       |                               ^~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::updatePorts(DeviceSwitchWidget*, const pa_card_info&, 
std::map<QByteArray, PortInfo>&)’:
| ../ukmedia_device_switch_widget.cpp:5418:81: warning: unused parameter ‘info’ 
[-Wunused-parameter]
|  5418 | void DeviceSwitchWidget::updatePorts(DeviceSwitchWidget *w, const 
pa_card_info &info, std::map<QByteArray, PortInfo> &ports) {
|       |                                                             
~~~~~~~~~~~~~~~~~~~~^~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static 
headset_ports* DeviceSwitchWidget::get_headset_ports(MateMixerStreamControl*, 
const pa_card_info*)’:
| ../ukmedia_device_switch_widget.cpp:5553:40: error: invalid use of incomplete 
type ‘MateMixerStreamControlPrivate’ {aka ‘struct 
_MateMixerStreamControlPrivate’}
|  5553 |     if (h->headphones && (control->priv->server_protocol_version >= 
34)) {
|       |                                        ^~
| In file included from 
/usr/include/mate-mixer/libmatemixer/matemixer-stored-control.h:25,
|                  from /usr/include/mate-mixer/libmatemixer/matemixer.h:32,
|                  from ../ukmedia_device_switch_widget.h:51,
|                  from ../ukmedia_device_switch_widget.cpp:18:
| /usr/include/mate-mixer/libmatemixer/matemixer-stream-control.h:50:16: note: 
forward declaration of ‘MateMixerStreamControlPrivate’ {aka ‘struct 
_MateMixerStreamControlPrivate’}
|    50 | typedef struct _MateMixerStreamControlPrivate  
MateMixerStreamControlPrivate;
|       |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In member function ‘void 
DeviceSwitchWidget::free_priv_port_names(MateMixerStreamControl*)’:
| ../ukmedia_device_switch_widget.cpp:5704:75: warning: unused parameter 
‘control’ [-Wunused-parameter]
|  5704 | void DeviceSwitchWidget::free_priv_port_names (MateMixerStreamControl 
   *control)
|       |                                                
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::sinkCb(pa_context*, const pa_sink_info*, int, void*)’:
| ../ukmedia_device_switch_widget.cpp:5716:45: warning: unused parameter ‘c’ 
[-Wunused-parameter]
|  5716 | void DeviceSwitchWidget::sinkCb(pa_context *c, const pa_sink_info *i, 
int eol, void *userdata)
|       |                                 ~~~~~~~~~~~~^
| ../ukmedia_device_switch_widget.cpp: In member function ‘bool 
DeviceSwitchWidget::updateSink(const pa_sink_info&)’:
| ../ukmedia_device_switch_widget.cpp:5770:57: warning: ‘QMap<K, V>::iterator 
QMap<K, V>::insertMulti(const Key&, const T&) [with Key = QString; T = 
QString]’ is deprecated: Use QMultiMap for maps storing multiple values with 
the same key. [-Wdeprecated-declarations]
|  5770 |             temp.insertMulti(info.name,(*sinkPort)->name);
|       |                                                         ^
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:47,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/qevent.h:50,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/QMouseEvent:1,
|                  from ../ukmedia_device_volume_widget.h:25,
|                  from ../ukmedia_device_switch_widget.h:23,
|                  from ../ukmedia_device_switch_widget.cpp:18:
| /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:1362:33: note: declared here
|  1362 | typename QMap<Key, T>::iterator QMap<Key, T>::insertMulti(const Key 
&key, const T &value)
|       |                                 ^~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In member function ‘void 
DeviceSwitchWidget::updateSource(const pa_source_info&)’:
| ../ukmedia_device_switch_widget.cpp:5787:59: warning: ‘QMap<K, V>::iterator 
QMap<K, V>::insertMulti(const Key&, const T&) [with Key = QString; T = 
QString]’ is deprecated: Use QMultiMap for maps storing multiple values with 
the same key. [-Wdeprecated-declarations]
|  5787 |             temp.insertMulti(info.name,(*sourcePort)->name);
|       |                                                           ^
| In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:47,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/qevent.h:50,
|                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/QMouseEvent:1,
|                  from ../ukmedia_device_volume_widget.h:25,
|                  from ../ukmedia_device_switch_widget.h:23,
|                  from ../ukmedia_device_switch_widget.cpp:18:
| /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:1362:33: note: declared here
|  1362 | typename QMap<Key, T>::iterator QMap<Key, T>::insertMulti(const Key 
&key, const T &value)
|       |                                 ^~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In member function ‘void 
DeviceSwitchWidget::miniMastrerSliderChangedSlot(int)’:
| ../ukmedia_device_switch_widget.cpp:745:15: warning: ignoring return value of 
‘int system(const char*)’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|   745 |         system(cmd.toLocal8Bit().data());
|       |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In member function ‘void 
DeviceSwitchWidget::actionMuteTriggeredSLot()’:
| ../ukmedia_device_switch_widget.cpp:954:19: warning: ignoring return value of 
‘int system(const char*)’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|   954 |             system(cmd.toLocal8Bit().data());
|       |             ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:968:19: warning: ignoring return value of 
‘int system(const char*)’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|   968 |             system(cmd.toLocal8Bit().data());
|       |             ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::list_device(DeviceSwitchWidget*, MateMixerContext*)’:
| ../ukmedia_device_switch_widget.cpp:1860:15: warning: ignoring return value 
of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|  1860 |         system("echo mute > /tmp/kylin_output_muted.log");
|       |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:1863:15: warning: ignoring return value 
of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|  1863 |         system("echo no > /tmp/kylin_output_muted.log");
|       |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:1868:15: warning: ignoring return value 
of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|  1868 |         system("echo mute > /tmp/kylin_input_muted.log");
|       |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:1871:15: warning: ignoring return value 
of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|  1871 |         system("echo no > /tmp/kylin_input_muted.log");
|       |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::add_device(DeviceSwitchWidget*, MateMixerDevice*)’:
| ../ukmedia_device_switch_widget.cpp:2949:15: warning: ignoring return value 
of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|  2949 |         system(cmd.toLatin1().data());
|       |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::on_context_default_input_stream_notify(MateMixerContext*, 
GParamSpec*, DeviceSwitchWidget*)’:
| ../ukmedia_device_switch_widget.cpp:3514:23: warning: ignoring return value 
of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|  3514 |                 system("rm /tmp/test.raw");
|       |                 ~~~~~~^~~~~~~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::on_control_mute_notify(MateMixerStreamControl*, 
GParamSpec*, DeviceSwitchWidget*)’:
| ../ukmedia_device_switch_widget.cpp:3956:15: warning: ignoring return value 
of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|  3956 |         system(cmd.toLocal8Bit().data());
|       |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:3976:19: warning: ignoring return value 
of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|  3976 |             system("echo mute > /tmp/kylin_output_muted.log");
|       |             ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:3979:19: warning: ignoring return value 
of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|  3979 |             system("echo no > /tmp/kylin_output_muted.log");
|       |             ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:3984:19: warning: ignoring return value 
of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|  3984 |             system("echo mute > /tmp/kylin_input_muted.log");
|       |             ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp:3987:19: warning: ignoring return value 
of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|  3987 |             system("echo no > /tmp/kylin_input_muted.log");
|       |             ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In static member function ‘static void 
DeviceSwitchWidget::on_stream_control_volume_notify(MateMixerStreamControl*, 
GParamSpec*, DeviceSwitchWidget*)’:
| ../ukmedia_device_switch_widget.cpp:4020:15: warning: ignoring return value 
of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|  4020 |         system(cmd.toLocal8Bit().data());
|       |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
| ../ukmedia_device_switch_widget.cpp: In lambda function:
| ../ukmedia_device_switch_widget.cpp:5394:19: warning: ignoring return value 
of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
|  5394 |             system(cmd.toLatin1().data());
|       |             ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
| make[2]: *** [Makefile:604: ukmedia_device_switch_widget.o] Error 1
| make[2]: Leaving directory 
'/<<PKGBUILDDIR>>/ukui-volume-control-applet-qt/build'
| make[1]: *** [debian/rules:30: override_dh_auto_build] Error 2
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| make: *** [debian/rules:9: binary] Error 2
| dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 
2

This is also reproduced by crossqa:
https://crossqa.debian.net/src/ukui-media

Helmut

Reply via email to