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>
This commit is contained in:
Marc Mutz 2015-06-27 11:14:12 +02:00
parent 1aaed259e0
commit c3597c3fcf

View File

@ -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);