aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tests.c
diff options
context:
space:
mode:
authorAnastasia Klimchuk <aklm@chromium.org>2022-04-12 13:33:39 +1000
committerAnastasia Klimchuk <aklm@chromium.org>2022-04-29 04:30:38 +0000
commitc4784f1a9a491eab118bbec81808e2de1dec187f (patch)
treec23eed59a688548e05275947417f769aaa5e5b01 /tests/tests.c
parent402e5d697c1ea09ef48bc09cbd4f743a7d44bc52 (diff)
downloadflashrom-c4784f1a9a491eab118bbec81808e2de1dec187f.tar.gz
flashrom-c4784f1a9a491eab118bbec81808e2de1dec187f.tar.bz2
flashrom-c4784f1a9a491eab118bbec81808e2de1dec187f.zip
tests: Add and include headers with function prototypes
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 <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/63489 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Thomas Heijligen <src@posteo.de> Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'tests/tests.c')
-rw-r--r--tests/tests.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/tests.c b/tests/tests.c
index 3eef47e4..6aabd908 100644
--- a/tests/tests.c
+++ b/tests/tests.c
@@ -16,6 +16,7 @@
#include <include/test.h>
#include "io_mock.h"
#include "tests.h"
+#include "wraps.h"
#include <stdio.h>
#include <string.h>