Mark some functions as __dead
This commit is contained in:
parent
95d0cac0e3
commit
4112b87687
@ -304,9 +304,9 @@ extern int source (char **environ, char *file);
|
||||
extern void ClearCloseOnFork (int fd);
|
||||
extern void DeleteXloginResources (struct display *d, Display *dpy);
|
||||
extern void LoadXloginResources (struct display *d);
|
||||
extern void ManageSession (struct display *d);
|
||||
extern __dead void ManageSession (struct display *d);
|
||||
extern void SecureDisplay (struct display *d, Display *dpy);
|
||||
extern void SessionExit (struct display *d, int status, int removeAuth);
|
||||
extern __dead void SessionExit (struct display *d, int status, int removeAuth);
|
||||
extern void SessionPingFailed (struct display *d);
|
||||
extern void SetupDisplay (struct display *d);
|
||||
extern void UnsecureDisplay (struct display *d, Display *dpy);
|
||||
|
@ -128,13 +128,11 @@ AbortClient (pid_t pid)
|
||||
*/
|
||||
|
||||
/*ARGSUSED*/
|
||||
static int
|
||||
static __dead int
|
||||
IOErrorHandler (Display *dpy)
|
||||
{
|
||||
LogError ("fatal IO error %d (%s)\n", errno, _SysErrorMsg(errno));
|
||||
exit(RESERVER_DISPLAY);
|
||||
/*NOTREACHED*/
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
@ -143,10 +141,9 @@ ErrorHandler(Display *dpy, XErrorEvent *event)
|
||||
LogError ("X error\n");
|
||||
if (XmuPrintDefaultErrorMessage (dpy, event, stderr) == 0) return 0;
|
||||
exit(UNMANAGE_DISPLAY);
|
||||
/*NOTREACHED*/
|
||||
}
|
||||
|
||||
void
|
||||
__dead void
|
||||
ManageSession (struct display *d)
|
||||
{
|
||||
pid_t pid = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user