Edward O'Callaghan has uploaded this change for review.
tests/lifecycle.c: Fix warn about dediprog_libusb_*() being unused
Fix the immediate issue of dediprog_libusb_*() callbacks
being unused however the more long term solution is to
remove these pre-processing directives in favour of compilation
units.
Change-Id: Ifba011c22988e9d2ae958cdafb1b11a3a8a7cc0a
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
---
M tests/lifecycle.c
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/48/64248/1
diff --git a/tests/lifecycle.c b/tests/lifecycle.c
index 63fcc3c..edb8188 100644
--- a/tests/lifecycle.c
+++ b/tests/lifecycle.c
@@ -229,6 +229,7 @@
#endif
}
+#if CONFIG_DEDIPROG == 1
static int dediprog_libusb_init(void *state, libusb_context **ctx)
{
*ctx = not_null();
@@ -251,6 +252,7 @@
}
return wLength;
}
+#endif /* CONFIG_DEDIPROG == 1 */
void dediprog_basic_lifecycle_test_success(void **state)
{
To view, visit change 64248. To unsubscribe, or for help writing mail filters, visit settings.