diff options
author | hjk <hjk@qt.io> | 2024-02-14 08:39:35 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2024-02-19 19:56:25 +0100 |
commit | 108085ebf9a3ff1a4f9d117bfae777dbcb98e240 (patch) | |
tree | 7b2bd7cd167b3f1d2ea6f54dc4be512a7fc60d02 /src/tools | |
parent | df4322f7f7dc818c5dd1dd859ce5010116d5d651 (diff) |
rcc: Suppress MSVC warning C4711 in generated code
The informational message
Warning C471 1function 'int __cdecl qInitResources_qrc(void)'
selected for automatic inline expansion
is triggered by /W4.
Fixes: QTBUG-122176
Change-Id: Ifbd2e969b1bb7d25e1b83a4c5d8b305e7b6883a2
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/rcc/rcc.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/rcc/rcc.cpp b/src/tools/rcc/rcc.cpp index 4e5269cc99..3c8e6aac6b 100644 --- a/src/tools/rcc/rcc.cpp +++ b/src/tools/rcc/rcc.cpp @@ -1098,6 +1098,10 @@ bool RCCResourceLibrary::writeHeader() writeString("\n**\n"); writeString("** WARNING! All changes made in this file will be lost!\n"); writeString( "*****************************************************************************/\n\n"); + writeString("#ifdef _MSC_VER\n" + "// disable informational message \"function ... selected for automatic inline expansion\"\n" + "#pragma warning (disable: 4711)\n" + "#endif\n\n"); break; case Python_Code: writeString("# Resource object code (Python 3)\n"); |