From c4784f1a9a491eab118bbec81808e2de1dec187f Mon Sep 17 00:00:00 2001 From: Anastasia Klimchuk Date: Tue, 12 Apr 2022 13:33:39 +1000 Subject: tests: Add and include headers with function prototypes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Part 2 of fixing -Wmissing-prototypes warnings. This patch adds headers with function prototypes and includes the headers into source files. This fixes the warnings like this: warning: no previous prototype for ‘function_name’ [-Wmissing-prototypes] This patch is needed to sync compiler warning options between meson and makefile. TEST=running the following produces no warnings: meson setup --wipe (to clean build directory) ninja test Change-Id: Ia1ff22deb2354569f277649c6575ef2d5ffbb6e0 Signed-off-by: Anastasia Klimchuk Reviewed-on: https://review.coreboot.org/c/flashrom/+/63489 Tested-by: build bot (Jenkins) Reviewed-by: Thomas Heijligen Reviewed-by: Felix Singer Reviewed-by: Edward O'Callaghan --- tests/spi25.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/spi25.c') diff --git a/tests/spi25.c b/tests/spi25.c index 251c98c0..f57251ea 100644 --- a/tests/spi25.c +++ b/tests/spi25.c @@ -15,6 +15,8 @@ #include +#include "wraps.h" +#include "tests.h" #include "programmer.h" #include "flashchips.h" #include "chipdrivers.h" -- cgit v1.2.3