From e7d68c4f722512ece31778d3bfc8dcf4ef793d26 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sun, 30 Oct 2022 13:00:43 +0300 Subject: [PATCH] Get rid of PreferenceDescription packing Fixes pointer alignment warnings. --- src/options.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/options.cc b/src/options.cc index 9cb1142..a288d89 100644 --- a/src/options.cc +++ b/src/options.cc @@ -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();