mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 16:58:03 +02:00
os: fix unused variable on WIN32 build
../os/access.c:443:18: warning: unused variable ‘n’ [-Wunused-variable]
420 443 | register int n;
421 | ^
422
[120/383] Compiling C object os/liblibxserver_os.a.p/connection.c.obj
431../os/connection.c:137:14: warning: ‘ParentProcess’ defined but not used [-Wunused-variable]
432 137 | static Pid_t ParentProcess;
433 | ^~~~~~~~~~~~~
../os/connection.c:132:13: warning: ‘RunFromSmartParent’ defined but not used [-Wunused-variable]
435 132 | static Bool RunFromSmartParent; /* send SIGUSR1 to parent process */
436 | ^~~~~~~~~~~~~~~~~~
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1295>
(cherry picked from commit 0706c03f9d)
This commit is contained in:
parent
cca930e210
commit
6cb6b75334
2 changed files with 3 additions and 2 deletions
|
|
@ -440,7 +440,6 @@ DefineSelf(int fd)
|
|||
#if !defined(TCPCONN) && !defined(UNIXCONN)
|
||||
return;
|
||||
#else
|
||||
register int n;
|
||||
int len;
|
||||
caddr_t addr;
|
||||
int family;
|
||||
|
|
|
|||
|
|
@ -123,12 +123,14 @@ struct ospoll *server_poll;
|
|||
Bool NewOutputPending; /* not yet attempted to write some new output */
|
||||
Bool NoListenAll; /* Don't establish any listening sockets */
|
||||
|
||||
static Bool RunFromSmartParent; /* send SIGUSR1 to parent process */
|
||||
Bool RunFromSigStopParent; /* send SIGSTOP to our own process; Upstart (or
|
||||
equivalent) will send SIGCONT back. */
|
||||
static char dynamic_display[7]; /* display name */
|
||||
Bool PartialNetwork; /* continue even if unable to bind all addrs */
|
||||
#if !defined(WIN32)
|
||||
static Pid_t ParentProcess;
|
||||
static Bool RunFromSmartParent; /* send SIGUSR1 to parent process */
|
||||
#endif
|
||||
|
||||
int GrabInProgress = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue