svn commit: r331265 - head/sys/sys

Warner Losh imp at FreeBSD.org
Tue Mar 20 21:17:48 UTC 2018


Author: imp
Date: Tue Mar 20 21:17:48 2018
New Revision: 331265
URL: https://svnweb.freebsd.org/changeset/base/331265

Log:
  Remove obsolete lint support.

Modified:
  head/sys/sys/_stdarg.h

Modified: head/sys/sys/_stdarg.h
==============================================================================
--- head/sys/sys/_stdarg.h	Tue Mar 20 21:16:26 2018	(r331264)
+++ head/sys/sys/_stdarg.h	Tue Mar 20 21:17:48 2018	(r331265)
@@ -52,18 +52,5 @@
   #define	va_end(ap)		__builtin_va_end(ap)
 #endif
 
-#if defined(lint) && !defined(va_start)
-  /*
-   * Provide a fake implementation for lint's benefit
-   * This very much assumes that __va_list ends up being a pointer
-   */
-  #define va_start(ap, last) ((void)((ap) = (char *) (&(last)+1)))
-  #if __ISO_C_VISIBLE >= 1999
-    #define va_copy(dst, src) ((dst) = (src))
-  #endif
-  #define va_arg(ap, type) (*((type*)(((ap) += sizeof(type)) - sizeof(type))))
-  #define va_end(ap) ((void)0)
-#endif
-
 #endif /* ! _SYS__STDARG_H_ */
 


More information about the svn-src-head mailing list