diff --git a/scriptengines/javascript/javascriptrunner.cpp b/scriptengines/javascript/javascriptrunner.cpp index 13055b9b4..3a38bc6ec 100644 --- a/scriptengines/javascript/javascriptrunner.cpp +++ b/scriptengines/javascript/javascriptrunner.cpp @@ -36,6 +36,7 @@ Q_DECLARE_METATYPE(ConstSearchMatchStar) JavaScriptRunner::JavaScriptRunner(QObject *parent, const QVariantList &args) : RunnerScript(parent) { + Q_UNUSED(args); m_engine = new QScriptEngine(this); importExtensions(); } diff --git a/scriptengines/javascript/simplejavascriptapplet.cpp b/scriptengines/javascript/simplejavascriptapplet.cpp index d95e9e263..a84c45e32 100644 --- a/scriptengines/javascript/simplejavascriptapplet.cpp +++ b/scriptengines/javascript/simplejavascriptapplet.cpp @@ -810,6 +810,7 @@ QScriptValue SimpleJavaScriptApplet::newPlasmaFrameSvg(QScriptContext *context, QScriptValue SimpleJavaScriptApplet::fileDialogSave(QScriptContext *context, QScriptEngine *engine) { + Q_UNUSED(context); FileDialogProxy *fd = new FileDialogProxy(KFileDialog::Saving); return engine->newQObject(fd); @@ -817,6 +818,7 @@ QScriptValue SimpleJavaScriptApplet::fileDialogSave(QScriptContext *context, QSc QScriptValue SimpleJavaScriptApplet::fileDialogOpen(QScriptContext *context, QScriptEngine *engine) { + Q_UNUSED(context); FileDialogProxy *fd = new FileDialogProxy(KFileDialog::Opening); return engine->newQObject(fd);