Fix a few compiler warnings

This commit is contained in:
Gioacchino Mazzurco 2020-03-23 16:44:06 +01:00
parent 1fd6e7e97a
commit cdafb7e27f
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051
2 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ $%inputParamsDeserialization%$
const std::weak_ptr<rb::Service> weakService(mService); const std::weak_ptr<rb::Service> weakService(mService);
const std::weak_ptr<rb::Session> weakSession(session); const std::weak_ptr<rb::Session> weakSession(session);
$%callbackName%$ = [this, weakService, weakSession]($%callbackParams%$) $%callbackName%$ = [weakService, weakSession]($%callbackParams%$)
{ {
auto session = weakSession.lock(); auto session = weakSession.lock();
if(!session || session->is_closed()) return; if(!session || session->is_closed()) return;

View File

@ -462,9 +462,9 @@ char *ops_get_passphrase(void)
{ {
#ifndef __ANDROID__ #ifndef __ANDROID__
return ops_malloc_passphrase(getpass("Passphrase: ")); return ops_malloc_passphrase(getpass("Passphrase: "));
#else // __ANDROID__ #else // __ANDROID
return ops_malloc_passphrase("getpass not supported on android"); // We should never get here on Android, getpass not supported.
#warning "getpass not supported on android" abort();
#endif // __ANDROID__ #endif // __ANDROID__
} }