Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Suppressing warning "unused parameter". How?
https://doc.qt.io/qt-5/qtglobal.html#Q_UNUSED
@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.
Q_UNUSED(var)
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*/)
@qwasder85 : That is how I would do it and wondered, why the MACRO exists. Today I found a use case: If a variable is unused only in release but used in debug build! I just wanted to share ...