all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Freenet.DE>
To: 7838@debbugs.gnu.org
Subject: bug#7838: Acknowledgement (24.0.50; warning in lib-src/emacsclient.c:1235 in Mac OS X)
Date: Thu, 31 Mar 2011 19:26:06 +0200	[thread overview]
Message-ID: <E13C9D22-F501-4D62-B12C-524DE8A0BDF2@Freenet.DE> (raw)
In-Reply-To: <handler.7838.B.129495701012937.ack@debbugs.gnu.org>

Hello!

GCC 4.5.2 now reports:

.../emacs-24.0.50/lib-src/emacsclient.c: In Funktion »set_local_socket«:
.../emacs-24.0.50/lib-src/emacsclient.c:1251:17: Warnung: Übergabe des  
Arguments 2 von »confstr« entfernt Kennzeichner von Zeiger-Ziel-Typ
/usr/include/unistd.h:423:9: Anmerkung: expected »char *« but argument  
is of type »const char *«

  1238	    if (default_sock)
  1239	      {
  1240		tmpdir = egetenv ("TMPDIR");
  1241		if (!tmpdir)
  1242	          {
  1243	#ifdef DARWIN_OS
  1244	#ifndef _CS_DARWIN_USER_TEMP_DIR
  1245	#define _CS_DARWIN_USER_TEMP_DIR 65537
  1246	#endif
  1247	            size_t n = confstr (_CS_DARWIN_USER_TEMP_DIR, NULL,  
(size_t) 0);
  1248	            if (n > 0)
  1249	              {
  1250	                tmpdir = alloca (n);
  1251	                confstr (_CS_DARWIN_USER_TEMP_DIR, tmpdir, n);
  1252	              }
  1253	            else
  1254	#endif
  1255	              tmpdir = "/tmp";
  1256	          }

And in /usr/include/unistd.h:

   414	__BEGIN_DECLS
   415	
   416	void	 _exit(int) __dead2;
   417	int	 access(const char *, int);
   418	unsigned int
   419		 alarm(unsigned int);
   420	int	 chdir(const char *);
   421	int	 chown(const char *, uid_t, gid_t);
   422	int	 close(int) __DARWIN_ALIAS_C(close);
   423	size_t	 confstr(int, char *, size_t) __DARWIN_ALIAS(confstr);
   424	char	*crypt(const char *, const char *);
   425	char	*ctermid(char *);


--
Greetings

   Pete

Without vi there is only GNU Emacs






  parent reply	other threads:[~2011-03-31 17:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-13 22:16 bug#7838: 24.0.50; warning in lib-src/emacsclient.c:1235 in Mac OS X Peter Dyballa
     [not found] ` <handler.7838.B.129495701012937.ack@debbugs.gnu.org>
2011-03-31 17:26   ` Peter Dyballa [this message]
2012-06-18  2:58 ` Samuel Bronson
2012-06-22 20:58   ` Peter Dyballa
2012-06-24  9:43   ` Chong Yidong

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=E13C9D22-F501-4D62-B12C-524DE8A0BDF2@Freenet.DE \
    --to=peter_dyballa@freenet.de \
    --cc=7838@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.