Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Suppressing warning "unused parameter". How?
-
Suppressing warning "unused parameter". How?
-
-
@bogong
Without knowing which compiler you are using?If you want to use the Qt macro,
Q_UNUSED(var)
, as per https://doc.qt.io/qt-5/qtglobal.html#Q_UNUSED.
-
Got it. Thx. Issue closed.
-
If you're a cool guy, you can comment out the variable name in the function header:
CoolGuyClass::coolFunction(int /*im_useless*/)