Does Q_UNUSED have any side effects ?

Does Q_UNUSED have any side effects ?

Asked on January 11, 2019 in Qt.
Add Comment


  • 1 Answer(s)

    In many variables passing the simple macro qglobal.h:

    # define Q_UNUSED(x) (void)x;
    
    

    The unused variable warnings are not used in macros.

    Pass the expression of the macros and edit the side holdings.

    Answered on January 11, 2019.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.