diff options
author | Myles Watson <mylesgw@gmail.com> | 2009-10-29 16:49:50 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2009-10-29 16:49:50 +0000 |
commit | dc4ca9a5dea9024bf17057dd78f58520183b2257 (patch) | |
tree | 65f382d41022f35eadaa3e66c7891ed85439ebb5 | |
parent | 59b52190b3366cf27911b83de6d88b987687a4b7 (diff) | |
download | coreboot-dc4ca9a5dea9024bf17057dd78f58520183b2257.tar.xz |
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@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4888 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | src/lib/gcc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |