From 158880cda323f99dee60d8e6d0c00d767c3bd67c Mon Sep 17 00:00:00 2001 From: Kris Kwiatkowski Date: Sat, 8 Dec 2018 21:39:35 +0000 Subject: [PATCH] disco: disable warrnings (disables rng) --- disco/Makefile | 6 +++--- disco/src/devurandom.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/disco/Makefile b/disco/Makefile index fbfb667..2fa2113 100644 --- a/disco/Makefile +++ b/disco/Makefile @@ -1,12 +1,12 @@ TARGET := disco.elf -LOCAL_CFLAGS := -Os -fno-builtin-printf -Isrc +LOCAL_CFLAGS := -Os -fno-builtin-printf -Isrc -Wextra -pedantic LOCAL_SRC_C := \ - tests/test_disco.c \ src/disco_asymmetric.c \ src/disco_symmetric.c \ src/tweetstrobe.c \ src/tweetX25519.c \ - src/devurandom.c + src/devurandom.c \ + tests/test_disco.c include ../conf/toolchain.mk include ../conf/sdk.mk diff --git a/disco/src/devurandom.c b/disco/src/devurandom.c index f2db07b..f52e93b 100644 --- a/disco/src/devurandom.c +++ b/disco/src/devurandom.c @@ -2,7 +2,7 @@ #include static int fd = -1; - void randombytes(unsigned char *x, unsigned long long xlen) { - /* TODO */ + /* TODO */ + (void)fd,(void)x,(void)xlen; }