GNU bug report logs -
#27059
Can't compile master branch on Mac OS X
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On 5/29/17 1:24 AM, Alan Third wrote:
>
>
> On 29 May 2017 7:56 a.m., "David Caldwell" <david <at> porkrind.org
> <mailto:david <at> porkrind.org>> wrote:
>
> On 5/26/17 4:58 PM, Alan Third wrote:
> > Thanks. I’ve pushed the change to master.
>
> Thanks. Emacs compiles on 10.7 and above, but I'm still getting an error
> on 10.6. It's a different part of the code, maybe it should be a new
> bug?
>
> CC nsfns.o
> nsfns.m: In function 'compute_tip_xy':
> nsfns.m:2756: error: incompatible type for argument 1 of
> 'CGRectContainsPoint'
> nsfns.m:2756: error: incompatible type for argument 2 of
> 'CGRectContainsPoint'
> make[1]: *** [nsfns.o] Error 1
> make: *** [src] Error 2
> make failed
>
>
> Hmm, this is a bit strange. Perhaps we need to cast the arguments to
> CGRect and CGPoint explicitly, but I don't see why, and surely that
> would be a warning rather than an error.
Yeah, it's defined in NSGeometry.h as:
typedef CGRect NSRect;
...which should make them compatible. Maybe it's something in the old
version of gcc (4.2.1) that 10.6 X-Code uses by default.
Nevertheless, you are right--Putting the explicit cast in makes it compile.
-David
[signature.asc (application/pgp-signature, attachment)]
This bug report was last modified 7 years and 358 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.