Declare functions that unconditionally call FatalError as _X_NORETURN.
For AtomError, this should fix a clang warning; in the other cases it's just good documentation. Signed-off-by: Jamey Sharp <jamey@minilop.net> Cc: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
9d31d5b639
commit
e90f20eed3
|
@ -300,7 +300,7 @@ extern _X_EXPORT Bool ValidAtom(
|
|||
extern _X_EXPORT const char *NameForAtom(
|
||||
Atom /*atom*/);
|
||||
|
||||
extern _X_EXPORT void AtomError(void);
|
||||
extern _X_EXPORT void AtomError(void) _X_NORETURN;
|
||||
|
||||
extern _X_EXPORT void FreeAllAtoms(void);
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ typedef void (*ReplySwapPtr) (
|
|||
extern _X_EXPORT void ReplyNotSwappd (
|
||||
ClientPtr /* pClient */,
|
||||
int /* size */,
|
||||
void * /* pbuf */);
|
||||
void * /* pbuf */) _X_NORETURN;
|
||||
|
||||
typedef enum {ClientStateInitial,
|
||||
ClientStateAuthenticating,
|
||||
|
|
|
@ -84,7 +84,7 @@ extern _X_EXPORT EventSwapPtr EventSwapVector[128];
|
|||
|
||||
extern _X_EXPORT void NotImplemented ( /* FIXME: this may move to another file... */
|
||||
xEvent *,
|
||||
xEvent *);
|
||||
xEvent *) _X_NORETURN;
|
||||
|
||||
#define SetGCVector(pGC, VectorElement, NewRoutineAddress, Atom) \
|
||||
pGC->VectorElement = NewRoutineAddress;
|
||||
|
|
Loading…
Reference in New Issue