]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid compiler warning in emacsclient.c
authorEli Zaretskii <eliz@gnu.org>
Mon, 19 Nov 2018 19:47:40 +0000 (21:47 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 19 Nov 2018 19:47:40 +0000 (21:47 +0200)
* lib-src/emacsclient.c (socket_name): Define only if
NO_SOCKETS_IN_FILE_SYSTEM is not defined, to avoid a compiler
warning.

lib-src/emacsclient.c

index 808755ef6043574e1567f9e29a905253b4e470f1..187d2d7b5be605389df8f44b8318b58448cbbddb 100644 (file)
@@ -132,8 +132,10 @@ static bool tty;
    is not running.  --alternate-editor.   */
 static char *alternate_editor;
 
+#ifndef NO_SOCKETS_IN_FILE_SYSTEM
 /* If non-NULL, the filename of the UNIX socket.  */
 static char const *socket_name;
+#endif
 
 /* If non-NULL, the filename of the authentication file.  */
 static char const *server_file;