1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Awards default values to Scan, to appease GCC 7.3.

This commit is contained in:
Thomas Harte 2019-02-19 21:40:42 -05:00
parent ddf5e1632d
commit 9f6956bd87

View File

@ -47,13 +47,9 @@ class CRT {
struct Scan { struct Scan {
enum Type { enum Type {
Sync, Level, Data, Blank, ColourBurst Sync, Level, Data, Blank, ColourBurst
} type; } type = Scan::Blank;
int number_of_cycles, number_of_samples; int number_of_cycles = 0, number_of_samples = 0;
union { uint8_t phase = 0, amplitude = 0;
struct {
uint8_t phase, amplitude;
};
};
}; };
void output_scan(const Scan *scan); void output_scan(const Scan *scan);