diff options
author | Claudio Maradonna <penguyman@stronzi.org> | 2018-07-24 10:04:55 +0200 |
---|---|---|
committer | Claudio Maradonna <penguyman@stronzi.org> | 2018-07-24 10:04:55 +0200 |
commit | 58dea555f7b18e78a6cba4992d0806b6d82a7e24 (patch) | |
tree | 136b92e64d12c8564a458255b5cd0cd1b9952506 /src | |
parent | 4d64c30a998233f327784df6a44244843a390a56 (diff) |
Fixed missing #ifdef QT_DEBUG. Added Q_UNUSED for some parameters
Diffstat (limited to 'src')
-rw-r--r-- | src/imitatepass.cpp | 2 | ||||
-rw-r--r-- | src/pass.cpp | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/imitatepass.cpp b/src/imitatepass.cpp index 7c8544e4..f1c84e40 100644 --- a/src/imitatepass.cpp +++ b/src/imitatepass.cpp @@ -59,6 +59,8 @@ void ImitatePass::OtpGenerate(QString file) { #ifdef QT_DEBUG dbg() << "No OTP generation code for fake pass yet, attempting for file: " + file; +#else + Q_UNUSED(file) #endif } diff --git a/src/pass.cpp b/src/pass.cpp index e81b4686..b1fe5c53 100644 --- a/src/pass.cpp +++ b/src/pass.cpp @@ -87,8 +87,10 @@ QString Pass::Generate_b(unsigned int length, const QString &charset) { passwd.remove(QRegExp("[\\n\\r]")); else { passwd.clear(); +#ifdef QT_DEBUG qDebug() << __FILE__ << ":" << __LINE__ << "\t" << "pwgen fail"; +#endif // TODO(bezet): emit critical ? } } else { @@ -289,6 +291,8 @@ QStringList Pass::getRecipientList(QString for_file) { */ QStringList Pass::getRecipientString(QString for_file, QString separator, int *count) { + Q_UNUSED(separator) + Q_UNUSED(count) return Pass::getRecipientList(for_file); } |