From dc4ca9a5dea9024bf17057dd78f58520183b2257 Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Thu, 29 Oct 2009 16:49:50 +0000 Subject: Add prototypes to silence these warnings. src/lib/gcc.c:30: warning: no previous prototype for '__wrap___divdi3' The prototypes were not added to lib.h because the functions should never be called directly. Signed-off-by: Myles Watson Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4888 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/lib/gcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/gcc.c b/src/lib/gcc.c index edd3eb997b..9b6ef035b2 100644 --- a/src/lib/gcc.c +++ b/src/lib/gcc.c @@ -22,9 +22,9 @@ * compiler call specifies. Therefore we need a wrapper around those * functions. See gcc bug PR41055 for more information. */ - #define WRAP_LIBGCC_CALL(type, name) \ type __real_##name(type a, type b) __attribute__((regparm(0))); \ + type __wrap_##name(type a, type b); \ type __wrap_##name(type a, type b) { return __real_##name(a, b); } WRAP_LIBGCC_CALL(long long, __divdi3) -- cgit v1.2.3