Variables QT_GCC_* are undefined for QPA.
Merge pull request #12313 from Vitallium/remove-nullptr-warning

Variables QT_GCC_* are undefined for QPA.