Source-Changes-HG archive

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

[src/trunk]: src/sys/sys don't gut restrict for lint.



details:   https://anonhg.NetBSD.org/src/rev/ad9efd3bb750
branches:  trunk
changeset: 1027657:ad9efd3bb750
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 14 20:12:48 2021 +0000

description:
don't gut restrict for lint.

diffstat:

 sys/sys/cdefs.h |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (23 lines):

diff -r 46a190693407 -r ad9efd3bb750 sys/sys/cdefs.h
--- a/sys/sys/cdefs.h   Tue Dec 14 18:26:39 2021 +0000
+++ b/sys/sys/cdefs.h   Tue Dec 14 20:12:48 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cdefs.h,v 1.157 2021/04/23 05:56:43 skrll Exp $        */
+/*     $NetBSD: cdefs.h,v 1.158 2021/12/14 20:12:48 christos Exp $     */
 
 /* * Copyright (c) 1991, 1993
  *     The Regents of the University of California.  All rights reserved.
@@ -469,11 +469,9 @@
  * C99 defines the restrict type qualifier keyword, which was made available
  * in GCC 2.92.
  */
-#if defined(__lint__)
-#define        __restrict      /* delete __restrict when not supported */
-#elif __STDC_VERSION__ >= 199901L
+#if __STDC_VERSION__ >= 199901L
 #define        __restrict      restrict
-#elif __GNUC_PREREQ__(2, 92) || defined(__lint__)
+#elif __GNUC_PREREQ__(2, 92)
 #define        __restrict      __restrict__
 #else
 #define        __restrict      /* delete __restrict when not supported */



Home | Main Index | Thread Index | Old Index