Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Our lint knows about attributes, stop eating them.
details: https://anonhg.NetBSD.org/src/rev/a0900e14f66c
branches: trunk
changeset: 349909:a0900e14f66c
user: christos <christos%NetBSD.org@localhost>
date: Tue Dec 27 21:52:01 2016 +0000
description:
Our lint knows about attributes, stop eating them.
diffstat:
sys/sys/cdefs.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 239cb07ba851 -r a0900e14f66c sys/sys/cdefs.h
--- a/sys/sys/cdefs.h Tue Dec 27 21:25:12 2016 +0000
+++ b/sys/sys/cdefs.h Tue Dec 27 21:52:01 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs.h,v 1.128 2015/11/19 17:04:01 christos Exp $ */
+/* $NetBSD: cdefs.h,v 1.129 2016/12/27 21:52:01 christos Exp $ */
/* * Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -205,7 +205,7 @@
* Calls to const functions can be optimised away and moved around
* without limitations.
*/
-#if !__GNUC_PREREQ__(2, 0)
+#if !__GNUC_PREREQ__(2, 0) && !defined(__lint__)
#define __attribute__(x)
#endif
@@ -258,7 +258,7 @@
/*
* __unused: Note that item or function might be unused.
*/
-#if __GNUC_PREREQ__(2, 7)
+#if __GNUC_PREREQ__(2, 7) || defined(__lint__)
#define __unused __attribute__((__unused__))
#else
#define __unused /* delete */
Home |
Main Index |
Thread Index |
Old Index