Super User's BSD Cross Reference: /NetBSD/tests/usr.bin/xlint/lint1/msg_095.c

1 /* $NetBSD: msg_095.c,v 1.8 2024年01月28日 08:17:27 rillig Exp $ */
2# 3 "msg_095.c"
3
4 // Test for message: declaration of '%s' hides earlier one [95]
5
6 /* lint1-flags: -ghSw -X 351 */
7
8 int identifier;
9
10 int
11 example(int identifier)
12{
13
14 {
15 /* expect+2: warning: declaration of 'identifier' hides earlier one [95] */
16 /* expect+1: warning: 'identifier' set but not used in function 'example' [191] */
17 int identifier = 3;
18 }
19
20 return identifier;
21}
22 

AltStyle によって変換されたページ (->オリジナル) /