Re: gnome-keyring Removing GCC-specific hack from
- From: Stef Walter <stef-list memberwebs com>
- To: Ed Schouten <ed 80386 nl>
- Cc: gnome-keyring-list gnome org
- Subject: Re: gnome-keyring Removing GCC-specific hack from
- Date: Thu, 2 Apr 2009 07:13:39 +0000 (UTC)
Ed Schouten wrote:
> I was just trying to compile gnome-keyring with Clang (from the LLVM
> project) and it seems it doesn't support this construct (which makes
> a lot of sense in my opinion):
>
> const int i = 5;
> union {
> char foo[i];
> } bar;
I'm no standards lawyer, but I thought modern C's could use any constant
for an array initializer...
> The attached patch makes gnome-keyring build with Clang. This is
> actually the first package I'm seeing that actually uses this construct
> (nowhere used in FreeBSD, Xorg, etc).
Nevertheless, I've committed the patch. BTW, I follow Clang progress
avidly. It's an awesome project.
Cheers,
Stef
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]