Silenced unused parameter warnings, added log messages.

This commit is contained in:
Armin Novak 2019-02-07 17:42:11 +01:00
parent 8b5ef6f41f
commit e76b5d442b
4 changed files with 15 additions and 0 deletions

View File

@ -168,6 +168,8 @@ static int x11_shadow_pam_authenticate(rdpShadowSubsystem* subsystem,
{
int pam_status;
SHADOW_PAM_AUTH_INFO* info;
WINPR_UNUSED(subsystem);
WINPR_UNUSED(client);
info = calloc(1, sizeof(SHADOW_PAM_AUTH_INFO));
if (!info)
@ -222,6 +224,8 @@ static int x11_shadow_pam_authenticate(rdpShadowSubsystem* subsystem,
static BOOL x11_shadow_input_synchronize_event(rdpShadowSubsystem* subsystem,
rdpShadowClient* client, UINT32 flags)
{
/* TODO: Implement */
WLog_WARN(TAG, "%s not implemented", __FUNCTION__);
return TRUE;
}
@ -273,6 +277,8 @@ static BOOL x11_shadow_input_unicode_keyboard_event(rdpShadowSubsystem*
subsystem,
rdpShadowClient* client, UINT16 flags, UINT16 code)
{
/* TODO: Implement */
WLog_WARN(TAG, "%s not implemented", __FUNCTION__);
return TRUE;
}

View File

@ -69,6 +69,8 @@ static UINT AudinServerOpening(audin_server_context* context)
*/
static UINT AudinServerOpenResult(audin_server_context* context, UINT32 result)
{
/* TODO: Implement */
WLog_WARN(TAG, "%s not implemented", __FUNCTION__);
WLog_INFO(TAG, "AUDIN open result %"PRIu32".\n", result);
return CHANNEL_RC_OK;
}

View File

@ -1556,6 +1556,7 @@ static INLINE BOOL shadow_client_no_surface_update(rdpShadowClient* client,
{
rdpShadowServer* server;
rdpShadowSurface* surface;
WINPR_UNUSED(pStatus);
server = client->server;
surface = client->inLobby ? server->lobby : server->surface;
return shadow_client_surface_update(client, &(surface->invalidRegion));

View File

@ -70,6 +70,10 @@ static int shadow_server_print_command_line_help(int argc, char** argv)
char* str;
int length;
COMMAND_LINE_ARGUMENT_A* arg;
if (argc < 1)
return -1;
WLog_INFO(TAG, "Usage: %s [options]", argv[0]);
WLog_INFO(TAG, "");
WLog_INFO(TAG, "Syntax:");
@ -134,6 +138,8 @@ static int shadow_server_print_command_line_help(int argc, char** argv)
int shadow_server_command_line_status_print(rdpShadowServer* server, int argc, char** argv,
int status)
{
WINPR_UNUSED(server);
if (status == COMMAND_LINE_STATUS_PRINT_VERSION)
{
WLog_INFO(TAG, "FreeRDP version %s (git %s)", FREERDP_VERSION_FULL, GIT_REVISION);