unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Carl Worth <cworth@cworth.org>
To: Jjgod Jiang <gzjjgod@gmail.com>, notmuch@notmuchmail.org
Subject: Re: Mac OS X/Darwin compatibility issues
Date: Wed, 18 Nov 2009 23:27:20 +0100	[thread overview]
Message-ID: <874oorfozb.fsf@yoom.home.cworth.org> (raw)
In-Reply-To: <ddd65cda0911171950o4eea4389v86de9525e46052d3@mail.gmail.com>

On Wed, 18 Nov 2009 11:50:17 +0800, Jjgod Jiang <gzjjgod@gmail.com> wrote:
> 1. g++ reports 'warning: command line option "-Wmissing-declarations"
> is valid for C/ObjC but not for C++'

In cairo, what we do is have a huge list of desired warnings and then
test each one in turn with a test-compile in the configure script.
That's probably what we should do here, (I recently established a
Makefile.config for this purpose that should be generated by the
configure script.)

> 2.
> notmuch-reply.c: In function ‘address_is_users’:
> notmuch-reply.c:87: warning: passing argument 2 of
> ‘notmuch_config_get_user_other_email’ from incompatible pointer type

Thanks for the report. I think I saw a fix for this in a commit from
Chris Wilson that's in my queue. (Though from a quick glance I'm not
sure where the size_t type got started in the code and propagated
throught this part).

> 3. Several errors about missing GNU extensions like getline() and strndup():
> 
> warning: implicit declaration of function ‘getline’
> error: ‘strndup’ was not declared in this scope
> 
> We can implement these with fgets() and strncpy() though.

Yes. I knew I was "cheating" by using some GNU extensions here. I'm
happy to accept portability patches for these things, but it's hard for
me to get excited about writing them myself.

Care to take a whack at these?

-Carl

  parent reply	other threads:[~2009-11-18 22:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-18  3:50 Mac OS X/Darwin compatibility issues Jjgod Jiang
2009-11-18  5:45 ` Alexander Botero-Lowry
2009-11-18  6:14   ` Jjgod Jiang
2009-11-18  6:19     ` Alexander Botero-Lowry
2009-11-18 22:27 ` Carl Worth [this message]
2009-11-18 23:45   ` Stewart Smith
2009-11-19  0:24     ` Alexander Botero-Lowry
2009-11-19  5:42       ` Stewart Smith
2009-11-19 11:34         ` Carl Worth

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

  List information: https://notmuchmail.org/

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

  git send-email \
    --in-reply-to=874oorfozb.fsf@yoom.home.cworth.org \
    --to=cworth@cworth.org \
    --cc=gzjjgod@gmail.com \
    --cc=notmuch@notmuchmail.org \
    /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 public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).