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>
bb10
parent
df4322f7f7
commit
108085ebf9
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -6,6 +6,11 @@ IGNORE:** Created by: The Resource Compiler for Qt version 6.3.0
|
|||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// disable informational message "function ... selected for automatic inline expansion"
|
||||
#pragma warning (disable: 4711)
|
||||
#endif
|
||||
|
||||
static const unsigned char qt_resource_data[] = {
|
||||
IGNORE: // D:/projects/qt/dev/src/qtbase/tests/auto/tools/rcc/data/images/images/square.png
|
||||
0x0,0x0,0x0,0x5e,
|
||||
|
|
|
|||
|
|
@ -6,6 +6,11 @@ IGNORE:** Created by: The Resource Compiler for Qt version 6.3.0
|
|||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// disable informational message "function ... selected for automatic inline expansion"
|
||||
#pragma warning (disable: 4711)
|
||||
#endif
|
||||
|
||||
static const unsigned char qt_resource_data[] = {
|
||||
IGNORE: // D:/projects/qt/dev/src/qtbase/tests/auto/tools/rcc/data/images/images/square.png
|
||||
0x0,0x0,0x0,0x5e,
|
||||
|
|
|
|||
|
|
@ -6,6 +6,11 @@ IGNORE: ** Created by: The Resource Compiler for Qt version 5.11.2
|
|||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// disable informational message "function ... selected for automatic inline expansion"
|
||||
#pragma warning (disable: 4711)
|
||||
#endif
|
||||
|
||||
static const unsigned char qt_resource_data[] = {
|
||||
IGNORE: // /data/dev/qt-5/qtbase/tests/auto/tools/rcc/data/sizes/data/data-0.txt
|
||||
0x0,0x0,0x0,0x0,
|
||||
|
|
|
|||
|
|
@ -6,6 +6,11 @@ IGNORE:** Created by: The Resource Compiler for Qt version 5.11.2
|
|||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// disable informational message "function ... selected for automatic inline expansion"
|
||||
#pragma warning (disable: 4711)
|
||||
#endif
|
||||
|
||||
static const unsigned char qt_resource_data[] = {
|
||||
IGNORE: // /data/dev/qt-5/qtbase/tests/auto/tools/rcc/data/sizes/data/data-1.txt
|
||||
0x0,0x0,0x0,0x1,
|
||||
|
|
|
|||
|
|
@ -6,6 +6,11 @@ IGNORE:** Created by: The Resource Compiler for Qt version 6.3.0
|
|||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// disable informational message "function ... selected for automatic inline expansion"
|
||||
#pragma warning (disable: 4711)
|
||||
#endif
|
||||
|
||||
static const unsigned char qt_resource_data[] = {
|
||||
IGNORE: // D:/projects/qt/dev/src/qtbase/tests/auto/tools/rcc/data/sizes/data/data-2.txt
|
||||
0x0,0x0,0x0,0x2,
|
||||
|
|
|
|||
|
|
@ -6,6 +6,11 @@ IGNORE:** Created by: The Resource Compiler for Qt version 6.3.0
|
|||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// disable informational message "function ... selected for automatic inline expansion"
|
||||
#pragma warning (disable: 4711)
|
||||
#endif
|
||||
|
||||
static const unsigned char qt_resource_data[] = {
|
||||
IGNORE: // D:/projects/qt/dev/src/qtbase/tests/auto/tools/rcc/data/sizes/data/data-1.txt
|
||||
0x0,0x0,0x0,0x1,
|
||||
|
|
|
|||
Loading…
Reference in New Issue