Commit 18f88a41 authored by Dmitry Antipov's avatar Dmitry Antipov

Avoid clang-specific warnings.

* buffer.c (init_buffer): Shut up -Wself-assign.
* process.c (server_accept_connection): Shut up -Wunsequenced.
parent 70d0c024
2014-09-17 Dmitry Antipov <dmantipov@yandex.ru>
Avoid clang-specific warnings.
* buffer.c (init_buffer): Shut up -Wself-assign.
* process.c (server_accept_connection): Shut up -Wunsequenced.
2014-09-16 Daniel Colascione <dancol@dancol.org>
* fns.c (sxhash): For symbols, use address as hash code.
......
......@@ -5286,7 +5286,7 @@ init_buffer (int initialized)
}
#else /* not USE_MMAP_FOR_BUFFERS */
/* Avoid compiler warnings. */
initialized = initialized;
(void) initialized;
#endif /* USE_MMAP_FOR_BUFFERS */
Fset_buffer (Fget_buffer_create (build_local_string ("*scratch*")));
......
......@@ -4060,8 +4060,8 @@ server_accept_connection (Lisp_Object server, int channel)
unsigned char *ip = (unsigned char *)&saddr.in.sin_addr.s_addr;
host = Fformat (5, ((Lisp_Object [])
{ build_local_string ("%d.%d.%d.%d"), make_number (*ip++),
make_number (*ip++), make_number (*ip++), make_number (*ip++) }));
{ build_local_string ("%d.%d.%d.%d"), make_number (ip[0]),
make_number (ip[1]), make_number (ip[2]), make_number (ip[3]) }));
service = make_number (ntohs (saddr.in.sin_port));
caller = Fformat (3, ((Lisp_Object [])
{ build_local_string (" <%s:%d>"), host, service }));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment