about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2010-07-13 16:50:00 +0200
committerAlexander Barton <alex@barton.de>2010-07-13 16:50:00 +0200
commit41034950d9cb6bdfc14abe99bf080058189d8933 (patch)
tree36e6df0172d70cf46085f4ac60d672ae542647c7 /src
parent6faf44bc6daf1b8d2e01c08ab15d234aa23ced59 (diff)
downloadngircd-41034950d9cb6bdfc14abe99bf080058189d8933.tar.gz
ngircd-41034950d9cb6bdfc14abe99bf080058189d8933.zip
Mark some variables as "unused" to prevent compiler warnings
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.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/client.c2
-rw-r--r--src/ngircd/log.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ngircd/client.c b/src/ngircd/client.c
index 84024999..96d40d29 100644
--- a/src/ngircd/client.c
+++ b/src/ngircd/client.c
@@ -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);
 
diff --git a/src/ngircd/log.c b/src/ngircd/log.c
index c8dbdd3c..0cfe3b71 100644
--- a/src/ngircd/log.c
+++ b/src/ngircd/log.c
@@ -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.",