* libmisc/obscure.c: Tag the `old' parameter of palindrome(),
similar(), and simple() as unused. * libmisc/loginprompt.c: Tag the `sig' parameter of login_exit() as unused. * src/expiry.c: Tag the `sig' parameter of catch_signals() as unused. * src/su.c: Tag the `sig' parameter of catch_signals() as unused. * src/su.c: Add int parameter to the prototype of oldsig(). * src/login.c: Tag the `sig' parameter of alarm_handler() as unused. * src/sulogin.c: Tag the `sig' parameter of catch_signals() as unused. * libmisc/getdate.y: Tag the `string' parameter of yyerror() as unused. * libmisc/getdate.y: The string provided to yyerror() is const. * libmisc/getdate.y: Fix the prototypes of yylex() and yyerror().
This commit is contained in:
@@ -44,7 +44,7 @@ static void usage (void);
|
||||
/*
|
||||
* catch_signals - signal catcher
|
||||
*/
|
||||
static RETSIGTYPE catch_signals (int sig)
|
||||
static RETSIGTYPE catch_signals (unused int sig)
|
||||
{
|
||||
exit (10);
|
||||
}
|
||||
|
@@ -290,7 +290,7 @@ static void init_env (void)
|
||||
}
|
||||
|
||||
|
||||
static RETSIGTYPE alarm_handler (int sig)
|
||||
static RETSIGTYPE alarm_handler (unused int sig)
|
||||
{
|
||||
fprintf (stderr, _("\nLogin timed out after %d seconds.\n"), timeout);
|
||||
exit (0);
|
||||
|
4
src/su.c
4
src/su.c
@@ -164,7 +164,7 @@ static void su_failure (const char *tty)
|
||||
|
||||
#ifdef USE_PAM
|
||||
/* Signal handler for parent process later */
|
||||
static void catch_signals (int sig)
|
||||
static void catch_signals (unused int sig)
|
||||
{
|
||||
++caught;
|
||||
}
|
||||
@@ -316,7 +316,7 @@ int main (int argc, char **argv)
|
||||
#else /* !USE_PAM */
|
||||
int err = 0;
|
||||
|
||||
RETSIGTYPE (*oldsig) ();
|
||||
RETSIGTYPE (*oldsig) (int);
|
||||
int is_console = 0;
|
||||
|
||||
struct spwd *spwd = 0;
|
||||
|
@@ -61,7 +61,7 @@ extern char **environ;
|
||||
/* local function prototypes */
|
||||
static RETSIGTYPE catch_signals (int);
|
||||
|
||||
static RETSIGTYPE catch_signals (int sig)
|
||||
static RETSIGTYPE catch_signals (unused int sig)
|
||||
{
|
||||
exit (1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user