Author: myles
Date: 2009-10-29 17:49:50 +0100 (Thu, 29 Oct 2009)
New Revision: 4888
Modified:
trunk/coreboot-v2/src/lib/gcc.c
Log:
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 <mylesgw(a)gmail.com>
Acked-by: Stefan Reinauer <stepan(a)coresystems.de>
Modified: trunk/coreboot-v2/src/lib/gcc.c
===================================================================
--- trunk/coreboot-v2/src/lib/gcc.c 2009-10-28 19:56:34 UTC (rev 4887)
+++ trunk/coreboot-v2/src/lib/gcc.c 2009-10-29 16:49:50 UTC (rev 4888)
@@ -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)