[freerdp,client] mark function pointers [[nodiscard]]

This commit is contained in:
Armin Novak
2026-02-15 22:46:12 +01:00
parent 9d199a9735
commit 9ecfb268fe
3 changed files with 3 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ typedef struct
int type;
bool focus;
bool clicked;
OnClick onclick;
WINPR_ATTR_NODISCARD OnClick onclick;
Window handle;
} xfFloatbarButton;

View File

@@ -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,

View File

@@ -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