]> git.ozlabs.org Git - petitboot/commit
discover: Fix unused function warning
authorJoel Stanley <joel@jms.id.au>
Tue, 6 Mar 2018 04:02:18 +0000 (14:32 +1030)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Wed, 7 Mar 2018 05:24:31 +0000 (16:24 +1100)
commit2b86765dfa37f9b447fe983967c1dcbc712a4989
tree89e2e7b5d5842a1cab6042d696c92c000a9536f8
parent352f5c2729dc8b40524e45ddde4f560ded717ec8
discover: Fix unused function warning

clang errors out about an unused have_busybox function:

 discover/paths.c:44:13: error: unused function 'have_busybox' [-Werror,-Wunused-function]
 static bool have_busybox(void)
            ^

Move have_busybox() to inside the #ifndef PETITBOOT_TEST scope to
eliminate the warning and avoid having #ifdefs in load_url_async().

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
[Moved definition into #ifndef PETITBOOT_TEST instead of using
 #ifdef at the call site]
discover/paths.c