From c3597c3fcfbc472c8dce1a8d1dd27f442760deaa Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 27 Jun 2015 11:14:12 +0200 Subject: QCommandLineOption: never inline the warning function We suppose that this function will never be called, yet the compiler still inlines it in all four places. Stop it. Change-Id: If601bc3644cacb77aeab9d615578e4afb349a73e Reviewed-by: David Faure --- src/corelib/tools/qcommandlineoption.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/corelib/tools/qcommandlineoption.cpp') diff --git a/src/corelib/tools/qcommandlineoption.cpp b/src/corelib/tools/qcommandlineoption.cpp index e6fccf0443..724803bce9 100644 --- a/src/corelib/tools/qcommandlineoption.cpp +++ b/src/corelib/tools/qcommandlineoption.cpp @@ -265,6 +265,8 @@ namespace { return false; } + + Q_NEVER_INLINE static bool warn(const char *what) Q_DECL_NOEXCEPT { qWarning("QCommandLineOption: Option names cannot %s", what); -- cgit v1.2.3