From 57d5c14d2a390ca9a0a4d9fa934446150ecd16fc Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 19 Nov 2018 21:47:40 +0200 Subject: Avoid compiler warning in emacsclient.c * 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 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib-src') diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 808755ef604..187d2d7b5be 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -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; -- cgit v1.2.3