Module Name: src
Committed By: rillig
Date: Sat Apr 15 12:59:02 UTC 2023
Modified Files:
src/tests/usr.bin/xlint/lint1: msg_302.c
Log Message:
tests/lint: remove wrong comment
GCC 10 does warn about returning a temporary object, but only when
optimizations are enabled.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/xlint/lint1/msg_302.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/usr.bin/xlint/lint1/msg_302.c
diff -u src/tests/usr.bin/xlint/lint1/msg_302.c:1.6 src/tests/usr.bin/xlint/lint1/msg_302.c:1.7
--- src/tests/usr.bin/xlint/lint1/msg_302.c:1.6 Sat Apr 15 12:47:32 2023
+++ src/tests/usr.bin/xlint/lint1/msg_302.c Sat Apr 15 12:59:02 2023
@@ -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: