diff --git a/client/X11/xf_floatbar.c b/client/X11/xf_floatbar.c index 9fcdc5087..b59e519cb 100644 --- a/client/X11/xf_floatbar.c +++ b/client/X11/xf_floatbar.c @@ -63,7 +63,7 @@ typedef struct int type; bool focus; bool clicked; - OnClick onclick; + WINPR_ATTR_NODISCARD OnClick onclick; Window handle; } xfFloatbarButton; diff --git a/client/common/cmdline.c b/client/common/cmdline.c index f4d4e28cd..81acc27ae 100644 --- a/client/common/cmdline.c +++ b/client/common/cmdline.c @@ -975,7 +975,7 @@ typedef struct const char* optname; FreeRDP_Settings_Keys_String id; CmdLineSubOptionType opttype; - CmdLineSubOptionCb cb; + WINPR_ATTR_NODISCARD CmdLineSubOptionCb cb; } CmdLineSubOptions; static BOOL parseSubOptions(rdpSettings* settings, const CmdLineSubOptions* opts, size_t count, diff --git a/client/iOS/FreeRDP/ios_freerdp.h b/client/iOS/FreeRDP/ios_freerdp.h index 6aa60fc9b..1d454f610 100644 --- a/client/iOS/FreeRDP/ios_freerdp.h +++ b/client/iOS/FreeRDP/ios_freerdp.h @@ -39,7 +39,7 @@ typedef struct mf_context CLIPRDR_FORMAT *serverFormats; CliprdrClientContext *cliprdr; UINT32 clipboardCapabilities; - pServerCutText ServerCutText; + WINPR_ATTR_NODISCARD pServerCutText ServerCutText; } mfContext; struct mf_info