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::Session> weakSession(session);
$%callbackName%$ = [this, weakService, weakSession]($%callbackParams%$)
$%callbackName%$ = [weakService, weakSession]($%callbackParams%$)
{
auto session = weakSession.lock();
if(!session || session->is_closed()) return;

View File

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