summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2019-12-23 09:35:11 -0800
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2019-12-23 09:35:11 -0800
commitfbd4c9cc4f101cf2dacb3521517facfbd36c41ac (patch)
tree97daab617b99b83a91cd9b1a88a0e5d5e6703a08 /main.c
parented5a276f9b8a5da636e5cda4f3e33a54b0382bdf (diff)
downloadchristmas_lights-fbd4c9cc4f101cf2dacb3521517facfbd36c41ac.tar.gz
christmas_lights-fbd4c9cc4f101cf2dacb3521517facfbd36c41ac.tar.xz
make gcc shut up
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;