From: Christophe CURIS <christophe.cu...@free.fr> As pointed by the commpiler, the variable 'syslog_prefix' is not used in the code, so it is removed.
Signed-off-by: Christophe CURIS <christophe.cu...@free.fr> --- WINGs/error.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/WINGs/error.c b/WINGs/error.c index d61621f..739fa5e 100644 --- a/WINGs/error.c +++ b/WINGs/error.c @@ -74,7 +74,6 @@ void __wmessage(const char *func, const char *file, int line, int type, const ch int truncated = 0; #ifdef HAVE_SYSLOG int syslog_priority = LOG_INFO; - const char *syslog_prefix = "INFO"; #endif if (linemax == 0) { @@ -107,21 +106,18 @@ void __wmessage(const char *func, const char *file, int line, int type, const ch strncat(buf, _("fatal: "), linemax - 1 - strlen(buf)); #ifdef HAVE_SYSLOG syslog_priority = LOG_CRIT; - syslog_prefix = "FATAL"; #endif break; case WMESSAGE_TYPE_ERROR: strncat(buf, _("error: "), linemax - 1 - strlen(buf)); #ifdef HAVE_SYSLOG syslog_priority = LOG_ERR; - syslog_prefix = "ERROR"; #endif break; case WMESSAGE_TYPE_WARNING: strncat(buf, _("warning: "), linemax - 1 - strlen(buf)); #ifdef HAVE_SYSLOG syslog_priority = LOG_WARNING; - syslog_prefix = "WARNING"; #endif break; case WMESSAGE_TYPE_MESSAGE: -- 1.9.2 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.