qt6-bb10/mkspecs/common
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
android Remove QT_READDIR_R macro from qplatformdefs.h 2024-02-06 00:57:17 +02:00
bsd
c89
integrity
mac
posix Remove QT_READDIR_R macro from qplatformdefs.h 2024-02-06 00:57:17 +02:00
qnx Remove QT_READDIR_R macro from qplatformdefs.h 2024-02-06 00:57:17 +02:00
rtems
uikit qmake: iOS: Don't pass -fobjc-nonfragile-abi -fobjc-legacy-dispatch 2022-05-23 21:12:06 +02:00
vxworks undef READ and WRITE on VxWorks 2023-08-31 22:30:35 +00:00
wasm QMake: Fix quoting of WASM's ASYNCIFY_IMPORTS linker option 2024-02-19 15:24:07 +01:00
clang-mac.conf
clang.conf
g++-base.conf
g++-macx.conf
g++-unix.conf
g++-win32.conf
g++.conf
gcc-base-mac.conf
gcc-base-unix.conf
gcc-base.conf
ghs-base.conf
ghs-integrity-armv7.conf
ghs-integrity-armv8.conf
ghs-integrity-x86.conf
icc-base-unix.conf
ios.conf
linux.conf
llvm.conf
mac.conf
macx.conf cmake: Propagate Apple platform build requirements to qconfig.pri 2024-03-14 14:50:36 +01:00
msvc-based-version.conf
msvc-desktop.conf qmake: Do not disable deprecation warnings for MSVC (C4996) 2024-05-28 20:19:14 +02:00
msvc-version.conf
qcc-base-qnx-aarch64le.conf
qcc-base-qnx-armle-v7.conf
qcc-base-qnx-x86-64.conf
qcc-base-qnx-x86.conf
qcc-base-qnx.conf
qcc-base.conf
rtems-base.conf
sanitize.conf
shell-unix.conf
shell-win32.conf
solaris.conf
tvos.conf
uikit.conf Disable bitcode for iOS 2022-07-07 17:02:37 +02:00
unix.conf
watchos.conf
windows-desktop.conf
windows-vulkan.conf