Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qmake: Do not disable deprecation warnings for MSVC (C4996)
Commit 0a76b6b in Qt 5.5.0 did move C4496 that warns about use of API marked with __declspec(deprecated), [[deprecated]] to level 4, effectively disabling the warning for Qt users. This was done to work around msvc warnings for standard API Microsoft considers insecure, like std::copy. Anyhow, this change also meant that users won't see warnings for other deprecated API - including warnings about deprecated API in Qt, which is especially crucial for the Qt 6 transition. The original issue was fixed in Qt headers already in Qt 5.6.1 (see commit 31c7b24). Also the CMake integration never set C4496, so it should be safe to remove this now. [ChangeLog][qmake] qmake does not disable the MSVC compiler warning about deprecated API by default anymore (C4996). This means the compiler will now warn about use of deprecated API, be it from Qt or from other headers. You can manually revert this by adding QMAKE_CXX_FLAGS_WARN_ON += -wd4996 to your .pro file. Fixes: QTBUG-85227 Change-Id: I5a578d34370e0e5e8a91f8a31e96b9c532dde8b5 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
- Loading branch information