diff --git a/server/proxy/pf_channel.h b/server/proxy/pf_channel.h index 1f0b35613..eb4ea37e3 100644 --- a/server/proxy/pf_channel.h +++ b/server/proxy/pf_channel.h @@ -36,6 +36,7 @@ typedef PfChannelResult (*ChannelTrackerPeekFn)(ChannelStateTracker* tracker, BO void channelTracker_free(ChannelStateTracker* t); WINPR_ATTR_MALLOC(channelTracker_free, 1) +WINPR_ATTR_NODISCARD ChannelStateTracker* channelTracker_new(pServerStaticChannelContext* channel, ChannelTrackerPeekFn fn, void* data); diff --git a/server/proxy/pf_config.c b/server/proxy/pf_config.c index e3cd4eb47..9c3039424 100644 --- a/server/proxy/pf_config.c +++ b/server/proxy/pf_config.c @@ -114,6 +114,7 @@ static const char* key_cert_file = "CertificateFile"; static const char* key_cert_content = "CertificateContent"; WINPR_ATTR_MALLOC(CommandLineParserFree, 1) +WINPR_ATTR_NODISCARD static char** pf_config_parse_comma_separated_list(const char* list, size_t* count) { if (!list || !count) diff --git a/server/shadow/shadow_capture.h b/server/shadow/shadow_capture.h index 31de5505d..3d892ff7f 100644 --- a/server/shadow/shadow_capture.h +++ b/server/shadow/shadow_capture.h @@ -43,6 +43,7 @@ extern "C" void shadow_capture_free(rdpShadowCapture* capture); WINPR_ATTR_MALLOC(shadow_capture_free, 1) + WINPR_ATTR_NODISCARD rdpShadowCapture* shadow_capture_new(rdpShadowServer* server); #ifdef __cplusplus diff --git a/server/shadow/shadow_encoder.h b/server/shadow/shadow_encoder.h index dfe00f3ba..23aa80b0d 100644 --- a/server/shadow/shadow_encoder.h +++ b/server/shadow/shadow_encoder.h @@ -72,6 +72,7 @@ extern "C" void shadow_encoder_free(rdpShadowEncoder* encoder); WINPR_ATTR_MALLOC(shadow_encoder_free, 1) + WINPR_ATTR_NODISCARD rdpShadowEncoder* shadow_encoder_new(rdpShadowClient* client); #ifdef __cplusplus diff --git a/server/shadow/shadow_mcevent.h b/server/shadow/shadow_mcevent.h index c78b9206f..b13a89284 100644 --- a/server/shadow/shadow_mcevent.h +++ b/server/shadow/shadow_mcevent.h @@ -39,6 +39,7 @@ extern "C" void shadow_multiclient_free(rdpShadowMultiClientEvent* event); WINPR_ATTR_MALLOC(shadow_multiclient_free, 1) + WINPR_ATTR_NODISCARD rdpShadowMultiClientEvent* shadow_multiclient_new(void); void shadow_multiclient_publish(rdpShadowMultiClientEvent* event); diff --git a/server/shadow/shadow_screen.h b/server/shadow/shadow_screen.h index a7bf7894b..ca7973a45 100644 --- a/server/shadow/shadow_screen.h +++ b/server/shadow/shadow_screen.h @@ -46,6 +46,7 @@ extern "C" void shadow_screen_free(rdpShadowScreen* screen); WINPR_ATTR_MALLOC(shadow_screen_free, 1) + WINPR_ATTR_NODISCARD rdpShadowScreen* shadow_screen_new(rdpShadowServer* server); #ifdef __cplusplus diff --git a/server/shadow/shadow_subsystem.h b/server/shadow/shadow_subsystem.h index 206dfddb6..e62192ed8 100644 --- a/server/shadow/shadow_subsystem.h +++ b/server/shadow/shadow_subsystem.h @@ -32,6 +32,7 @@ extern "C" void shadow_subsystem_free(rdpShadowSubsystem* subsystem); WINPR_ATTR_MALLOC(shadow_subsystem_free, 1) + WINPR_ATTR_NODISCARD rdpShadowSubsystem* shadow_subsystem_new(void); int shadow_subsystem_init(rdpShadowSubsystem* subsystem, rdpShadowServer* server); diff --git a/server/shadow/shadow_surface.h b/server/shadow/shadow_surface.h index 277df0a2c..01260e94b 100644 --- a/server/shadow/shadow_surface.h +++ b/server/shadow/shadow_surface.h @@ -32,6 +32,7 @@ extern "C" void shadow_surface_free(rdpShadowSurface* surface); WINPR_ATTR_MALLOC(shadow_surface_free, 1) + WINPR_ATTR_NODISCARD rdpShadowSurface* shadow_surface_new(rdpShadowServer* server, UINT16 x, UINT16 y, UINT32 width, UINT32 height);