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