]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Mark some variables as "unused" to prevent compiler warnings
authorAlexander Barton <alex@barton.de>
Tue, 13 Jul 2010 14:50:00 +0000 (16:50 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 13 Jul 2010 14:50:00 +0000 (16:50 +0200)
Some variables are only used when compiling with IDENT or PAM support
or when the debug code is enabled. Mark them as "unused" so that gcc
doesn't generate warnings when neither of these options is enabled.

src/ngircd/client.c
src/ngircd/log.c

index 8402499936e02c530f81592c3c385a0e1f85a947..96d40d2923d89c932568c0750685e0fa3e25acdb 100644 (file)
@@ -363,7 +363,7 @@ Client_SetUser( CLIENT *Client, const char *User, bool Idented )
  * @param User User name to set.
  */
 GLOBAL void
-Client_SetOrigUser(CLIENT *Client, const char *User) {
+Client_SetOrigUser(CLIENT UNUSED *Client, const char UNUSED *User) {
        assert(Client != NULL);
        assert(User != NULL);
 
index c8dbdd3c4d012b3ae9f0172db39743e1bcc255a7..0cfe3b71f5d605b45b6ba87ce8f2733aff82308c 100644 (file)
@@ -264,7 +264,7 @@ va_dcl
 
 
 GLOBAL void
-Log_Init_Subprocess(char *Name)
+Log_Init_Subprocess(char UNUSED *Name)
 {
 #ifdef SYSLOG
        openlog( PACKAGE_NAME, LOG_CONS|LOG_PID, LOG_LOCAL5 );
@@ -277,7 +277,7 @@ Log_Init_Subprocess(char *Name)
 
 
 GLOBAL void
-Log_Exit_Subprocess(char *Name)
+Log_Exit_Subprocess(char UNUSED *Name)
 {
 #ifdef DEBUG
        Log_Subprocess(LOG_DEBUG, "%s sub-process %ld done.",