Module Name:    src
Committed By:   kamil
Date:           Sun Sep 15 15:18:45 UTC 2019

Modified Files:
        src/sys/sys: cdefs.h

Log Message:
Define __NO_LEAKS in sys/cdefs.h

This preprocessor symbol is intended to be used with leak detecting
software, documenting leaks that are not important to be freed in the
default build version.


To generate a diff of this commit:
cvs rdiff -u -r1.142 -r1.143 src/sys/sys/cdefs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/cdefs.h
diff -u src/sys/sys/cdefs.h:1.142 src/sys/sys/cdefs.h:1.143
--- src/sys/sys/cdefs.h:1.142	Sun Sep 15 14:30:26 2019
+++ src/sys/sys/cdefs.h	Sun Sep 15 15:18:45 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: cdefs.h,v 1.142 2019/09/15 14:30:26 kamil Exp $	*/
+/*	$NetBSD: cdefs.h,v 1.143 2019/09/15 15:18:45 kamil Exp $	*/
 
 /* * Copyright (c) 1991, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -333,6 +333,11 @@
 #endif
 #endif
 
+#if defined(__COVERITY__) ||						\
+    __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__)
+#define	__NO_LEAKS
+#endif
+
 /*
  * To be used when an empty body is required like:
  *

Reply via email to