qt6-bb10/mkspecs
Kai Köhne a92f0e1a84 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 31c7b24aa5). 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>
2024-05-28 20:19:14 +02:00
..
aix-g++
aix-g++-64
android-clang Remove QT_READDIR_R macro from qplatformdefs.h 2024-02-06 00:57:17 +02:00
common qmake: Do not disable deprecation warnings for MSVC (C4996) 2024-05-28 20:19:14 +02:00
cygwin-g++
darwin-g++
devices
dummy
features Android: bump default sdk build version for Java to 34 2024-05-27 17:14:35 +03:00
freebsd-clang
freebsd-g++
haiku-g++
hpuxi-g++-64
hurd-g++
integrity-armv7
integrity-armv7-imx6
integrity-armv8-rcar
integrity-x86
linux-aarch64-gnu-g++
linux-arm-gnueabi-g++
linux-clang
linux-clang-32
linux-clang-libc++
linux-clang-libc++-32
linux-g++
linux-g++-32
linux-g++-64
linux-icc
linux-icc-32
linux-icc-64
linux-icc-k1om
linux-llvm
linux-lsb-g++
lynxos-g++
macx-clang
macx-g++
macx-icc
macx-ios-clang iOS: Remove unneeded default_post.prf file 2024-03-22 00:04:20 +01:00
macx-visionos-clang Add preliminary support for Qt for visionOS 2024-04-18 05:00:57 +02:00
macx-xcode
modules
netbsd-g++
openbsd-g++
qnx-aarch64le-qcc
qnx-armle-v7-qcc
qnx-x86-64-qcc
qnx-x86-qcc
solaris-cc
solaris-cc-64
solaris-cc-64-stlport
solaris-cc-stlport
solaris-g++
solaris-g++-64
unsupported Remove remnants of Qt for Native Client (NACL) 2023-09-23 13:40:44 +02:00
vxworks-clang Add initial support for building for VxWorks using clang 2023-07-21 06:08:04 +02:00
wasm-emscripten
wasm-emscripten-64
win32-arm64-msvc
win32-clang-g++
win32-clang-msvc
win32-g++
win32-icc
win32-icc-k1om
win32-msvc