Do not use custom compiler options in tests


The tests use qt_internal_add_test(), which means that they will
use the same compiler options that are used globally by Qt.
We should not override them.

The reason for this change is that /W4 warning level on Windows
was too strict and together with warnings-are-errors was causing
build errors in CI during a submodule update round.

Pick-to: 6.11
Change-Id: If8c00b66abc37ed45683c44ffd08bb78370f67f0
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
commitc74a1fccdb67089cf21c323aa68254fd0f2978c4
parenta3cdad43b518f0c9f54abadd61b37c6937ccf0df
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeWed, 14 Jan 2026 17:56:40 +0100