[PATCH 3/3] lib/int_sqrt.c: Fix compiler warning

Sascha Hauer s.hauer at pengutronix.de
Tue Nov 22 23:50:34 PST 2016


include int_sqrt.h to have the prototype for the function defined in
this file.

Fixes:
lib/int_sqrt.c:25:15: warning: no previous prototype for 'int_sqrt' [-Wmissing-prototypes]

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 lib/int_sqrt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/int_sqrt.c b/lib/int_sqrt.c
index 30ccafb..bf8b18f 100644
--- a/lib/int_sqrt.c
+++ b/lib/int_sqrt.c
@@ -15,6 +15,7 @@
  */
 
 #include <common.h>
+#include <int_sqrt.h>
 
 /**
  * int_sqrt - rough approximation to sqrt
-- 
2.10.2




More information about the barebox mailing list