mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-25 17:39:18 -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::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;
|
||||||
|
@ -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__
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user