summaryrefslogtreecommitdiff
path: root/lib/tsearch.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-12-11 01:15:28 +0100
committerBruno Haible <bruno@clisp.org>2009-12-11 01:15:28 +0100
commit6948250861edce048d7bb3c6b47d13fa3649905e (patch)
treec3d1c4a2e42938d93a07095345cb18567fa44710 /lib/tsearch.c
parent441aa3044f43e5572f58c354f01e6bc070acd5c7 (diff)
downloadgnulib-6948250861edce048d7bb3c6b47d13fa3649905e.tar.gz
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Diffstat (limited to 'lib/tsearch.c')
-rw-r--r--lib/tsearch.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/tsearch.c b/lib/tsearch.c
index a2e053aa53..44b0d329f0 100644
--- a/lib/tsearch.c
+++ b/lib/tsearch.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995-1997, 2000, 2006-2007 Free Software Foundation, Inc.
+/* Copyright (C) 1995-1997, 2000, 2006-2007, 2009 Free Software Foundation, Inc.
Contributed by Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE>, 1997.
NOTE: The canonical source of this file is maintained with the GNU C
@@ -86,6 +86,10 @@
#include <config.h>
+/* Don't use __attribute__ __nonnull__ in this compilation unit. Otherwise gcc
+ optimizes away the rootp == NULL tests below. */
+#define _GL_ARG_NONNULL(params)
+
/* Specification. */
#ifdef IN_LIBINTL
# include "tsearch.h"