[PATCH 2/4] mtab: add __attribute__((unused)) to unused variables

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

 



...to silence -Wextra warnings.

Signed-off-by: Jeff Layton <jlayton@xxxxxxxxx>
---
 mtab.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mtab.c b/mtab.c
index 70789bc..de1aabd 100644
--- a/mtab.c
+++ b/mtab.c
@@ -51,12 +51,12 @@ static int lockfile_fd = -1;
 static int signals_have_been_setup = 0;
 
 static void
-handler (int sig) {
+handler (int sig __attribute__((unused))) {
      exit(EX_USER);
 }
 
 static void
-setlkw_timeout (int sig) {
+setlkw_timeout (int sig __attribute__((unused))) {
      /* nothing, fcntl will fail anyway */
 }
 
-- 
1.7.1.1

--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux