Module Name:    src
Committed By:   martin
Date:           Sat Sep 14 21:48:49 UTC 2013

Modified Files:
        src/sys/nfs: nfsm_subs.h

Log Message:
Silence gcc 4.8.1 warnings


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/nfs/nfsm_subs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/nfs/nfsm_subs.h
diff -u src/sys/nfs/nfsm_subs.h:1.51 src/sys/nfs/nfsm_subs.h:1.52
--- src/sys/nfs/nfsm_subs.h:1.51	Fri Apr 10 18:58:50 2009
+++ src/sys/nfs/nfsm_subs.h	Sat Sep 14 21:48:49 2013
@@ -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; \

Reply via email to