Get rid of PreferenceDescription packing

Fixes pointer alignment warnings.
This commit is contained in:
Alexander Batalov 2022-10-30 13:00:43 +03:00
parent bc43bdc99c
commit e7d68c4f72

View File

@ -107,7 +107,6 @@ typedef enum PreferencesWindowFrm {
PREFERENCES_WINDOW_FRM_COUNT,
} PreferencesWindowFrm;
#pragma pack(2)
typedef struct PreferenceDescription {
// The number of options.
short valuesCount;
@ -129,7 +128,6 @@ typedef struct PreferenceDescription {
double maxValue;
int* valuePtr;
} PreferenceDescription;
#pragma pack()
static int optionsWindowInit();
static int optionsWindowFree();