LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 002-remove-unused-retvar.patch of Package proxsmtp (Project home:bastianfriedrich)

--- proxsmtp-1.10.ori/common/smtppass.c	2013-03-23 17:38:41.772965122 +0100
+++ proxsmtp-1.10/common/smtppass.c	2013-03-23 20:59:58.044242427 +0100
@@ -235,7 +235,9 @@
 
 void sp_init(const char* name)
 {
+#ifdef _DEBUG
     int r;
+#endif
 
     ASSERT(name);
 
@@ -252,8 +254,12 @@
     g_state.name = name;
 
     /* We need the default to parse into a useable form, so we do this: */
+#ifdef _DEBUG
     r = sp_parse_option(CFG_LISTENADDR, DEFAULT_SOCKET);
     ASSERT(r == 1);
+#else
+    sp_parse_option(CFG_LISTENADDR, DEFAULT_SOCKET);
+#endif
 
     /* Create the main mutex and condition variable */
     if(pthread_mutexattr_init(&g_mtxattr) != 0 ||