all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Caldwell <david@porkrind.org>
To: 18474@debbugs.gnu.org
Subject: bug#18474: trunk; Warning in callproc.c while building for Mac OS X on trunk
Date: Sat, 13 Sep 2014 22:55:09 -0700	[thread overview]
Message-ID: <54152DBD.6060400@porkrind.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 862 bytes --]


While building on Mac OS X, this code in src/callproc.c (line 1582ish):

#ifdef HAVE_NS
  if (data_dir == 0)
    data_dir == ns_etc_directory () != 0;
#endif

gives a warning:

cc   -c  -Demacs  -I. -I. -I../lib -I../lib                   -MMD -MF
deps/callproc.d -MP   -Wno-switch
-Wno-tautological-constant-out-of-range-compare -Wno-pointer-sign  -g3
-O2  callproc.c

callproc.c:1582:14: warning: comparison between pointer and integer
('int' and 'const char *')
    data_dir == ns_etc_directory () != 0;
    ~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~
callproc.c:1582:37: warning: inequality comparison result unused
[-Wunused-comparison]
    data_dir == ns_etc_directory () != 0;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~

2 warnings generated.

Maybe s/==/=/ ?

Looks like it was added in bzr r117829 (the huge alloca() patch).

-David


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4219 bytes --]

             reply	other threads:[~2014-09-14  5:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-14  5:55 David Caldwell [this message]
2014-09-14  8:24 ` bug#18474: trunk; Warning in callproc.c while building for Mac OS X on trunk Jan Djärv

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=54152DBD.6060400@porkrind.org \
    --to=david@porkrind.org \
    --cc=18474@debbugs.gnu.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 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.