Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/string avoid redefinition warning for __OPTI...
details: https://anonhg.NetBSD.org/src/rev/1595b7c8e6d6
branches: trunk
changeset: 982586:1595b7c8e6d6
user: mrg <mrg%NetBSD.org@localhost>
date: Sat Apr 17 21:43:47 2021 +0000
description:
avoid redefinition warning for __OPTIMIZE_SIZE__.
diffstat:
common/lib/libc/string/memset2.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 784d4d7083df -r 1595b7c8e6d6 common/lib/libc/string/memset2.c
--- a/common/lib/libc/string/memset2.c Sat Apr 17 21:37:21 2021 +0000
+++ b/common/lib/libc/string/memset2.c Sat Apr 17 21:43:47 2021 +0000
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: memset2.c,v 1.8 2021/04/17 08:06:58 simonb Exp $");
+__RCSID("$NetBSD: memset2.c,v 1.9 2021/04/17 21:43:47 mrg Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -47,7 +47,8 @@
#include <sys/endian.h>
#include <machine/types.h>
-#define __OPTIMIZE_SIZE__ /* other code path is very broken */
+#undef __OPTIMIZE_SIZE__
+#define __OPTIMIZE_SIZE__ 1 /* other code path is very broken */
#ifdef TEST
#include <assert.h>
Home |
Main Index |
Thread Index |
Old Index