Source-Changes-HG archive

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

[src/trunk]: src/sys/nfs Silence gcc 4.8.1 warnings



details:   https://anonhg.NetBSD.org/src/rev/d34ed34fe9ed
branches:  trunk
changeset: 790007:d34ed34fe9ed
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Sep 14 21:48:49 2013 +0000

description:
Silence gcc 4.8.1 warnings

diffstat:

 sys/nfs/nfsm_subs.h |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 7b31b6e0e59c -r d34ed34fe9ed sys/nfs/nfsm_subs.h
--- a/sys/nfs/nfsm_subs.h       Sat Sep 14 21:17:00 2013 +0000
+++ b/sys/nfs/nfsm_subs.h       Sat Sep 14 21:48:49 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfsm_subs.h,v 1.51 2009/04/10 18:58:50 bouyer Exp $    */
+/*     $NetBSD: nfsm_subs.h,v 1.52 2013/09/14 21:48:49 martin Exp $    */
 
 /*
  * Copyright (c) 1989, 1993
@@ -255,6 +255,14 @@
 #define NFSV3_WCCRATTR 0
 #define NFSV3_WCCCHK   1
 
+#if __GNUC_PREREQ__(4, 8)
+/*
+ * With all the macros in here, it is hard to track set-but-not-used cases
+ * and avoid them without cluttering the code.
+ */
+_Pragma("GCC diagnostic ignored \"-Wunused-but-set-variable\"")
+#endif
+
 #define        nfsm_wcc_data(v, f, flags, docheck) \
                { int ttattrf, ttretf = 0, renewctime = 0, renewnctime = 0; \
                struct timespec ctime, mtime; \



Home | Main Index | Thread Index | Old Index