Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/usr.bin/xlint/lint1 tests/lint: remove wrong comment
details: https://anonhg.NetBSD.org/src/rev/a5ac527fb75c
branches: trunk
changeset: 374262:a5ac527fb75c
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Apr 15 12:59:02 2023 +0000
description:
tests/lint: remove wrong comment
GCC 10 does warn about returning a temporary object, but only when
optimizations are enabled.
diffstat:
tests/usr.bin/xlint/lint1/msg_302.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 8a47bfe78786 -r a5ac527fb75c tests/usr.bin/xlint/lint1/msg_302.c
--- a/tests/usr.bin/xlint/lint1/msg_302.c Sat Apr 15 12:47:32 2023 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_302.c Sat Apr 15 12:59:02 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msg_302.c,v 1.6 2023/04/15 12:47:32 rillig Exp $ */
+/* $NetBSD: msg_302.c,v 1.7 2023/04/15 12:59:02 rillig Exp $ */
# 3 "msg_302.c"
// Test for message: '%s' returns pointer to automatic object [302]
@@ -47,7 +47,6 @@ return_local_array(int x)
return (local);
case 7:
/* C99 6.5.2.5p6 */
- /* Neither GCC 10 nor Clang 15 warn about this case. */
/* expect+1: warning: 'return_local_array' returns pointer to automatic object [302] */
return (char[]){"local string"};
default:
Home |
Main Index |
Thread Index |
Old Index