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/flashrom.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/flashrom.c') diff --git a/tests/flashrom.c b/tests/flashrom.c index c3508c51..cc888313 100644 --- a/tests/flashrom.c +++ b/tests/flashrom.c @@ -14,6 +14,7 @@ */ #include +#include "tests.h" #include "programmer.h" -- cgit v1.2.3