all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Caldwell <david@porkrind.org>
To: Alan Third <alan@idiocy.org>
Cc: 27059@debbugs.gnu.org, Philipp Stephani <p.stephani2@gmail.com>
Subject: bug#27059: Can't compile master branch on Mac OS X
Date: Mon, 29 May 2017 01:56:05 -0700	[thread overview]
Message-ID: <762c9c53-835d-72fd-2a00-e1a18e23b5f8@porkrind.org> (raw)
In-Reply-To: <CABGBtwnA-pEcEX2hPEbZbjJ8VSf_QJuH+5rsOYNChRw59ws=LA@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1261 bytes --]

On 5/29/17 1:24 AM, Alan Third wrote:
> 
> 
> On 29 May 2017 7:56 a.m., "David Caldwell" <david@porkrind.org
> <mailto:david@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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2017-05-29  8:56 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-24 16:22 bug#27059: Can't compile master branch on Mac OS X David Caldwell
2017-05-24 20:20 ` Philipp Stephani
2017-05-25 16:25   ` David Caldwell
2017-05-25 19:02     ` Alan Third
2017-05-26 17:23       ` David Caldwell
2017-05-26 18:47         ` Philipp Stephani
2017-05-26 19:30         ` David Caldwell
2017-05-26 23:58           ` Alan Third
2017-05-29  6:55             ` David Caldwell
2017-05-29  8:24               ` Alan Third
2017-05-29  8:56                 ` David Caldwell [this message]
2017-05-29 16:05                   ` Alan Third
2017-05-30 18:36                     ` David Caldwell
2017-05-30 19:01                       ` Alan Third
2017-05-31 23:39                         ` David Caldwell
2017-05-25 21:12 ` OKAZAKI Tetsurou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=762c9c53-835d-72fd-2a00-e1a18e23b5f8@porkrind.org \
    --to=david@porkrind.org \
    --cc=27059@debbugs.gnu.org \
    --cc=alan@idiocy.org \
    --cc=p.stephani2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.