From fbd4c9cc4f101cf2dacb3521517facfbd36c41ac Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 23 Dec 2019 09:35:11 -0800 Subject: make gcc shut up --- main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 7f64e30..e7ed542 100644 --- a/main.c +++ b/main.c @@ -11,7 +11,10 @@ static struct colour seq[6]; static bool interrupted = false; void red_green() { +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmemset-elt-size" memset(seq, 0, 2 * sizeof(seq[0])); +#pragma GCC diagnostic pop seq[0].r = 255; seq[1].g = 255; -- cgit v1.2.3-70-g09d2