From 5ffaf12748666af92accdbae90aa8f1ec03da3f3 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 24 Nov 2023 09:05:25 +0100 Subject: [PATCH] [enum types] add *_RESERVED = 0 entries eliminate warnings with initializing a struct with = { 0 } due to enum members that do not define the value 0 --- include/freerdp/autodetect.h | 1 + include/freerdp/channels/location.h | 1 + include/freerdp/channels/rdpemsc.h | 1 + 3 files changed, 3 insertions(+) diff --git a/include/freerdp/autodetect.h b/include/freerdp/autodetect.h index ffe489463..b8551488d 100644 --- a/include/freerdp/autodetect.h +++ b/include/freerdp/autodetect.h @@ -40,6 +40,7 @@ extern "C" typedef enum { + RDP_NETCHAR_RESERVED = 0x0000U, /* The baseRTT and averageRTT fields are valid */ RDP_NETCHAR_RESULT_TYPE_BASE_RTT_AVG_RTT = 0x0840U, /* The bandwidth and averageRTT fields are valid */ diff --git a/include/freerdp/channels/location.h b/include/freerdp/channels/location.h index d4e87ae5f..5b91ea465 100644 --- a/include/freerdp/channels/location.h +++ b/include/freerdp/channels/location.h @@ -33,6 +33,7 @@ extern "C" typedef enum { + PDUTYPE_LOC_RESERVED = 0x0000, PDUTYPE_SERVER_READY = 0x0001, PDUTYPE_CLIENT_READY = 0x0002, PDUTYPE_BASE_LOCATION3D = 0x0003, diff --git a/include/freerdp/channels/rdpemsc.h b/include/freerdp/channels/rdpemsc.h index 1c90362bc..9b62ceeed 100644 --- a/include/freerdp/channels/rdpemsc.h +++ b/include/freerdp/channels/rdpemsc.h @@ -34,6 +34,7 @@ extern "C" typedef enum { + PDUTYPE_EMSC_RESERVED = 0x00, PDUTYPE_CS_CAPS_ADVERTISE = 0x01, PDUTYPE_SC_CAPS_CONFIRM = 0x02, PDUTYPE_SC_MOUSEPTR_UPDATE = 0x03,