diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-06-27 11:14:12 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-07-16 13:24:16 +0000 |
commit | c3597c3fcfbc472c8dce1a8d1dd27f442760deaa (patch) | |
tree | 47dbb58086d7ea2bfc00973dd5b3ec65e3e1b260 /src/corelib/tools/qcommandlineoption.cpp | |
parent | 1aaed259e046b00ee10f7b68d94970ab44192fdc (diff) |
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 <david.faure@kdab.com>
Diffstat (limited to 'src/corelib/tools/qcommandlineoption.cpp')
-rw-r--r-- | src/corelib/tools/qcommandlineoption.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); |