[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sysvinit-devel] [PATCH]: removing some unused variables

From: Matias A. Fonzo
Subject: [sysvinit-devel] [PATCH]: removing some unused variables
Date: Wed, 29 Jan 2014 18:04:46 -0300
User-agent: SquirrelMail/1.4.22

GCC produces warnings for some unused variables in shutdown.c and sulogin.c:

cc -ansi -O2 -fomit-frame-pointer -W -Wall -D_XOPEN_SOURCE -D_GNU_SOURCE  
-c -o shutdown.o shutdown.c
shutdown.c: In function 'main':
shutdown.c:486:10: warning: variable 'realuid' set but not used
  uid_t   realuid;

cc -ansi -O2 -fomit-frame-pointer -W -Wall -D_XOPEN_SOURCE -D_GNU_SOURCE  
-c -o sulogin.o sulogin.c
sulogin.c: In function 'tcfinal':
sulogin.c:231:6: warning: variable 'serial' set but not used
  int serial;

This diff removes those warnings.

Attachment: unused-variables.diff
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]