From ba3594ba9b5dd4c846c472a8d657edcb7c8109ac Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 2 Aug 2014 18:23:32 -0700 Subject: 5066 remove support for non-ANSI compilation 5068 Remove SCCSID() macro from Reviewed by: Keith Wesolowski Reviewed by: Josef 'Jeff' Sipek Approved by: Robert Mustacchi --- usr/src/uts/common/sys/debug.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'usr/src/uts/common/sys/debug.h') diff --git a/usr/src/uts/common/sys/debug.h b/usr/src/uts/common/sys/debug.h index 85b8ab5f90..27b84beb88 100644 --- a/usr/src/uts/common/sys/debug.h +++ b/usr/src/uts/common/sys/debug.h @@ -19,6 +19,8 @@ * CDDL HEADER END */ /* + * Copyright 2014 Garrett D'Amore + * * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -48,7 +50,6 @@ extern "C" { * ASSERT and is evaluated on both debug and non-debug kernels. */ -#if defined(__STDC__) extern int assfail(const char *, const char *, int); #define VERIFY(EX) ((void)((EX) || assfail(#EX, __FILE__, __LINE__))) #if DEBUG @@ -56,15 +57,6 @@ extern int assfail(const char *, const char *, int); #else #define ASSERT(x) ((void)0) #endif -#else /* defined(__STDC__) */ -extern int assfail(); -#define VERIFY(EX) ((void)((EX) || assfail("EX", __FILE__, __LINE__))) -#if DEBUG -#define ASSERT(EX) ((void)((EX) || assfail("EX", __FILE__, __LINE__))) -#else -#define ASSERT(x) ((void)0) -#endif -#endif /* defined(__STDC__) */ /* * Assertion variants sensitive to the compilation data model -- cgit v1.2.3