Re: gnome-keyring Removing GCC-specific hack from



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]