glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] A lot of small changes.


From: Shawn Anderson
Subject: Re: [glob2-devel] A lot of small changes.
Date: Tue, 3 Apr 2007 09:34:02 -0700

After a little more testing, I found that this all compiles fine on my gentoo box, using gcc 3.2,3.3,3.4.6.
The way you are using templates does compile on OS X gcc 4.0, but not 3.3.  Could this be an OS X version of gcc issue?

Either way, even if it compiles...

updateGlobalGradientSlow(Uint8 *gradient)
{
  if (size <= 65536)
    updateGlobalGradientSlow<Uint16>(gradient);
  else
    updateGlobalGradientSlow<Uint32>(gradient);
}

seems like a very strange and counter-intuitive way of using templates.  Was there a specific reason that it was changed to use templates vs using two methods?

/Shawn

On 4/2/07, Kai Antweiler <address@hidden> wrote:
> I just want to make this clear:
> I am not compiling with pedantic and seeing warnings.  On OS X and gcc
> 3.3this brings my compiler to a screeching halt (read error).


Yes, that's right.  I just wanted much warnings and errors to find
code that compromises portability.  I was quite surprised when I
saw the enum error message.
I will follow Cyrilles suggestion and remove -pedantic.


> Can anyone get gcc 3.3 and try it?  Maybe gcc 4.x and up support this, but
> 3.3 doesn't.

I just checked.  gcc 3.3.5-r1 is the lowest I can get without problems.
But I don't think I have time until easter.

--
Kai Antweiler


_______________________________________________
glob2-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/glob2-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]