From ff2c02da97ea674ca39446b1108549dfad40d045 Mon Sep 17 00:00:00 2001 From: gmcgarry Date: Sun, 17 Aug 2008 00:24:35 +0000 Subject: Define away __assert_function__ if __lint__. --- include/assert.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/assert.h') diff --git a/include/assert.h b/include/assert.h index ea8b4f741e9..f495ab0ac61 100644 --- a/include/assert.h +++ b/include/assert.h @@ -1,4 +1,4 @@ -/* $NetBSD: assert.h,v 1.18 2005/02/03 04:39:32 perry Exp $ */ +/* $NetBSD: assert.h,v 1.19 2008/08/17 00:24:35 gmcgarry Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -84,7 +84,9 @@ #endif /* _DIAGNOSTIC */ -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +#if defined(__lint__) +#define __assert_function__ (__static_cast(const void *,0)) +#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define __assert_function__ __func__ #elif __GNUC_PREREQ__(2, 6) #define __assert_function__ __PRETTY_FUNCTION__ -- cgit