GNU bug report logs -
#7838
24.0.50; warning in lib-src/emacsclient.c:1235 in Mac OS X
Previous Next
Reported by: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
Date: Thu, 13 Jan 2011 22:17:02 UTC
Severity: minor
Tags: patch
Found in version 24.0.50
Done: Chong Yidong <cyd <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 7838 <at> debbugs.gnu.org (full text, mbox):
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
This bug report was last modified 13 years and 28 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.