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>
This commit is contained in:
parent
43a6d4eb61
commit
0706c03f9d
|
@ -442,7 +442,6 @@ DefineSelf(int fd)
|
|||
#if !defined(TCPCONN) && !defined(UNIXCONN)
|
||||
return;
|
||||
#else
|
||||
register int n;
|
||||
int len;
|
||||
caddr_t addr;
|
||||
int family;
|
||||
|
|
|
@ -124,12 +124,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…
Reference in New Issue