diff --git a/Makefile b/Makefile index 558ba8ff..ea6ac0d9 100644 --- a/Makefile +++ b/Makefile @@ -181,6 +181,8 @@ CFLAGS += -std=gnu11 CFLAGS += -ffunction-sections CFLAGS += -fdata-sections CFLAGS += -Wall +CFLAGS += -Wmaybe-uninitialized +CFLAGS += -Wuninitialized CFLAGS += -fno-builtin ## from old CFLAGS += -nostartfiles CFLAGS += -Wfatal-errors diff --git a/src/comps/yaskawa.c b/src/comps/yaskawa.c index 88519375..503f0737 100644 --- a/src/comps/yaskawa.c +++ b/src/comps/yaskawa.c @@ -195,7 +195,6 @@ static void rt_func(float period, volatile void *ctx_ptr, volatile hal_pin_inst_ if(count > 80){ int pol = 0; int read_counter = 0; - int write_counter = 0; int counter = 0; for(int i = 0;i < ARRAY_SIZE(yaskawa_reply);i++){