summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
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;