clang (__builtin_ffs) vs /usr/include/string.h

From: Larry Rosenman <ler_at_lerctr.org>
Date: Tue, 20 Dec 2011 11:58:30 -0600
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Is anyone going to fix the following in the clang or FreeBSD system?

In file included from /usr/include/string.h:45:
/usr/include/strings.h:47:6: error: conflicting types for '__builtin_ffs'
int      ffs(int) __pure2;
         ^
/usr/include/machine/cpufunc.h:140:24: note: expanded from:
#define        ffs(x)  __builtin_ffs(x)
                       ^
/usr/include/strings.h:47:6: note: '__builtin_ffs' is a builtin with
type 'int (unsigned int)'
7 warnings and 1 error generated.
*** Error code 1


This looks like something that needs to change in clang/FreeBSD headers.

- -- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 512-248-2683                 E-Mail: ler_at_lerctr.org
US Mail: 430 Valona Loop, Round Rock, TX 78681-3893
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJO8MzGAAoJENC8dtAvA1zmaJAH/iQFOp2253yJgCCz8vbFotyY
zV04olNDrLTYlKLZ8XNJ01qyiDnOXm/gL6TMZMvRiSNQg3e78ZYYPl2ufn0a1VNg
lnaQ7SO4qCT1o/66HJKr9YGyjZ12IYQwCkHnzGc+OURlQ/ZLYfOrOVvuE1tFsNUH
5PEuZ2ywOGWdBf9BlzN8PaBp6fJ+zBMvTOamy5jjYhD5pd3E2io/DwGUGJogsACa
3ETUrZdnoxjdfuC3VxEy0kSuW7iaODbbI1AMVAR3eWivjayiAo26HnuJ6rW7GSiN
Amn02uueCEQhl4d+Qvj4fDhMBg4PI+0blklheNJ9bjcxwtJDLk/KbevSU7SSCYg=
=Nvdn
-----END PGP SIGNATURE-----
Received on Tue Dec 20 2011 - 16:58:48 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:22 UTC