summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/dm_error.h4
-rw-r--r--xdm/error.c2
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");