diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2016-09-04 10:14:11 +0100 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2016-09-04 10:14:11 +0100 |
commit | 54f84e7949743842d0ff39697524c1d269d1e59c (patch) | |
tree | 2b3861136d33f0a122e76b1421bf1d7af665001c | |
parent | 3141f3015a2ef7b3274bf4d01107dc68990d4583 (diff) |
Declare LogFatal() __dead
-rw-r--r-- | include/dm_error.h | 4 | ||||
-rw-r--r-- | xdm/error.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/dm_error.h b/include/dm_error.h index e8a92ef..eecc14a 100644 --- a/include/dm_error.h +++ b/include/dm_error.h @@ -39,8 +39,8 @@ extern void InitErrorLog (void); extern void LogAppend (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2); extern void LogError (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2); extern void LogInfo (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2); -extern void LogOutOfMem (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2); -extern void LogPanic (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2); +extern void LogOutOfMem (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2); +extern __dead void LogPanic (const char * fmt, ...) _X_ATTRIBUTE_PRINTF(1,2); #endif /* _DM_ERROR_H_ */ diff --git a/xdm/error.c b/xdm/error.c index af32ad5..59ae069 100644 --- a/xdm/error.c +++ b/xdm/error.c @@ -89,7 +89,7 @@ LogError (const char * fmt, ...) LogVarArgsWrite(fmt); } -void +__dead void LogPanic (const char * fmt, ...) { LogHeader("panic"); |