Skip to content

Commit 3cc771c

Browse files
nim65smrbean-bremen
authored andcommitted
fix format-security
On Arch, with GCC 13.2.1: ``` make[1]: Entering directory '/home/nim/aur/pythonqt/src/pythonqt-3.5.0/generator' g++ -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -Wno-deprecated-declarations -pedantic -Winit-self -Wuninitialized -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto -fno-fat-lto-objects -Wall -Wextra -D_REENTRANT -fPIC -DRXX_ALLOCATOR_INIT_0 -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I. -I. -I/home/nim/aur/pythonqt/src/pythonqt-3.5.0/generator/../common -Iparser -Iparser/rpp -Iparser/rpp -I/usr/include/qt -I/usr/include/qt/QtGui -I/usr/include/qt/QtXml -I/usr/include/qt/QtCore -I. -I/usr/lib/qt/mkspecs/linux-g++ -o main.o main.cpp main.cpp:108:17: error: format not a string literal and no format arguments [-Werror=format-security] 108 | qWarning((reason + "This may cause problems with finding the necessary include files.").toUtf8().constData()); ```
1 parent 503ec19 commit 3cc771c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ namespace
105105
includes << (frameworkDir + "/QtOpenGL.framework/Headers");
106106
includes << frameworkDir;
107107
#else
108-
qWarning((reason + "This may cause problems with finding the necessary include files.").toUtf8().constData());
108+
qWarning() << reason << "This may cause problems with finding the necessary include files.";
109109
#endif
110110
}
111111
else

0 commit comments

Comments
 (0)