From 606c1cebac82abba4127ce7b5af5457563f048c5 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Sat, 26 Nov 2016 16:58:42 -0800 Subject: [PATCH] Work around apparent alignment bug in G++ 5.4.1? Padding struct to be sizeof() % 4 == 0, because it was crashing the baseband... I think. --- firmware/baseband/dsp_decimate.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/firmware/baseband/dsp_decimate.hpp b/firmware/baseband/dsp_decimate.hpp index 4437ef888..bf8a82bc6 100644 --- a/firmware/baseband/dsp_decimate.hpp +++ b/firmware/baseband/dsp_decimate.hpp @@ -255,6 +255,7 @@ public: private: int16_t z[5] { }; + int16_t _dummy { }; // TODO: Addresses GCC bug when constructing a class that's not sizeof() % 4 == 0? }; } /* namespace decimate */