mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 18:19:02 +00:00
b2739f37d6
build error: cfns.gperf:101:1: error: 'gnu_inline' attribute present on 'libc_name_p' cfns.gperf:26:14: error: but not here observed on Arch Linux affected versions gcc 4.6, gcc 4.7 reported & fixed in DragonFlyBSD issue #136 https://github.com/DragonFlyBSD/DPorts/issues/136 Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> SVN-Revision: 46355
22 lines
584 B
Diff
22 lines
584 B
Diff
--- a/gcc/cp/cfns.h
|
|
+++ b/gcc/cp/cfns.h
|
|
@@ -53,6 +53,9 @@ __inline
|
|
static unsigned int hash (const char *, unsigned int);
|
|
#ifdef __GNUC__
|
|
__inline
|
|
+#ifdef __GNUC_STDC_INLINE__
|
|
+__attribute__ ((__gnu_inline__))
|
|
+#endif
|
|
#endif
|
|
const char * libc_name_p (const char *, unsigned int);
|
|
/* maximum key range = 391, duplicates = 0 */
|
|
@@ -96,7 +99,7 @@ hash (register const char *str, register
|
|
400, 400, 400, 400, 400, 400, 400, 400, 400, 400,
|
|
400, 400, 400, 400, 400, 400, 400
|
|
};
|
|
- register int hval = len;
|
|
+ register int hval = (int)len;
|
|
|
|
switch (hval)
|
|
{
|