Variables QT_GCC_* are undefined for QPA.

Variables QT_GCC_MAJOR_VERSION and QT_GCC_MINOR_VERSION are undefined for QPA,
therefore a few warning suppressions were not properly enabled.

Issues:
#10913