summaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2008-09-24 16:24:30 +0000
committerchristos <christos@NetBSD.org>2008-09-24 16:24:30 +0000
commit0588e626515fa99c592a54788b8aebfbeb2e0ef5 (patch)
tree8080737f4f9f0c6769529d78c2080b3aa80ef750 /lib/libc/string
parent194e105784ba311cfc95c4fc3d2ee5c773c63574 (diff)
fix newer gcc warning.
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/strpbrk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/string/strpbrk.c b/lib/libc/string/strpbrk.c
index e5281484387..7438bf9a14e 100644
--- a/lib/libc/string/strpbrk.c
+++ b/lib/libc/string/strpbrk.c
@@ -1,4 +1,4 @@
-/* $NetBSD: strpbrk.c,v 1.17 2008/09/24 14:36:02 christos Exp $ */
+/* $NetBSD: strpbrk.c,v 1.18 2008/09/24 16:24:30 christos Exp $ */
/*-
* Copyright (c) 2008 Joerg Sonnenberger
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: strpbrk.c,v 1.17 2008/09/24 14:36:02 christos Exp $");
+__RCSID("$NetBSD: strpbrk.c,v 1.18 2008/09/24 16:24:30 christos Exp $");
#include <assert.h>
#include <inttypes.h>
@@ -39,10 +39,10 @@ __RCSID("$NetBSD: strpbrk.c,v 1.17 2008/09/24 14:36:02 christos Exp $");
#ifdef FAST_STRPBRK
#define ADD_NEW_TO_SET(i) (set[inv[i] = idx++] = (i))
#define IS_IN_SET(i) (inv[i] < idx && set[inv[i]] == (i))
-#define ADD_TO_SET(i) (IS_IN_SET(i) || ADD_NEW_TO_SET(i))
+#define ADD_TO_SET(i) (void)(IS_IN_SET(i) || ADD_NEW_TO_SET(i))
#else
#define IS_IN_SET(i) (set[(i) >> 3] & idx[(i) & 7])
-#define ADD_TO_SET(i) (set[(i) >> 3] |= idx[(i) & 7])
+#define ADD_TO_SET(i) (void)(set[(i) >> 3] |= idx[(i) & 7])
#endif
char *