mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-12 18:00:28 +00:00
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.
This commit is contained in:
parent
6faf44bc6d
commit
41034950d9
@ -363,7 +363,7 @@ Client_SetUser( CLIENT *Client, const char *User, bool Idented )
|
|||||||
* @param User User name to set.
|
* @param User User name to set.
|
||||||
*/
|
*/
|
||||||
GLOBAL void
|
GLOBAL void
|
||||||
Client_SetOrigUser(CLIENT *Client, const char *User) {
|
Client_SetOrigUser(CLIENT UNUSED *Client, const char UNUSED *User) {
|
||||||
assert(Client != NULL);
|
assert(Client != NULL);
|
||||||
assert(User != NULL);
|
assert(User != NULL);
|
||||||
|
|
||||||
|
@ -264,7 +264,7 @@ va_dcl
|
|||||||
|
|
||||||
|
|
||||||
GLOBAL void
|
GLOBAL void
|
||||||
Log_Init_Subprocess(char *Name)
|
Log_Init_Subprocess(char UNUSED *Name)
|
||||||
{
|
{
|
||||||
#ifdef SYSLOG
|
#ifdef SYSLOG
|
||||||
openlog( PACKAGE_NAME, LOG_CONS|LOG_PID, LOG_LOCAL5 );
|
openlog( PACKAGE_NAME, LOG_CONS|LOG_PID, LOG_LOCAL5 );
|
||||||
@ -277,7 +277,7 @@ Log_Init_Subprocess(char *Name)
|
|||||||
|
|
||||||
|
|
||||||
GLOBAL void
|
GLOBAL void
|
||||||
Log_Exit_Subprocess(char *Name)
|
Log_Exit_Subprocess(char UNUSED *Name)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
Log_Subprocess(LOG_DEBUG, "%s sub-process %ld done.",
|
Log_Subprocess(LOG_DEBUG, "%s sub-process %ld done.",
|
||||||
|
Loading…
Reference in New Issue
Block a user