mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix a few compiler warnings
This commit is contained in:
parent
1fd6e7e97a
commit
cdafb7e27f
@ -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;
|
||||
|
@ -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__
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user