From ccfe1f6c1914b1d7a7ad83ad5da3f615e701ae61 Mon Sep 17 00:00:00 2001 From: Crt Mori Date: Mon, 30 Sep 2024 17:00:37 +0200 Subject: [PATCH] Use strict prototypes for the functions --- Makefile | 1 + src/mlx90632.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d3290ac..81e46be 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,7 @@ TARGET = mlx90632 # Flags CFLAGS += -Wall -Wpedantic # just something for warnings... CFLAGS += -Werror # Make sure we dont have any warnings +CFLAGS += -Wstrict-prototypes # Make sure we have strict prototyping for functions ARFLAGS = rcs # optimization levels # ------------------- diff --git a/src/mlx90632.c b/src/mlx90632.c index 65433c8..35223f7 100644 --- a/src/mlx90632.c +++ b/src/mlx90632.c @@ -675,12 +675,12 @@ int32_t mlx90632_trigger_measurement_single(void) return ret; } -STATIC int32_t mlx90632_unlock_eeporm() +STATIC int32_t mlx90632_unlock_eeporm(void) { return mlx90632_i2c_write(0x3005, MLX90632_EEPROM_WRITE_KEY); } -STATIC int32_t mlx90632_wait_for_eeprom_not_busy() +STATIC int32_t mlx90632_wait_for_eeprom_not_busy(void) { uint16_t reg_status; int32_t ret = mlx90632_i2c_read(MLX90632_REG_STATUS, ®_status);