xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_128.c (revision ccd9df534e375a4366c5b55f23782053c7a98d82)
1 /*	$NetBSD: msg_128.c,v 1.8 2024/01/28 08:17:27 rillig Exp $	*/
2 # 3 "msg_128.c"
3 
4 // Test for message: operands of '%s' have incompatible pointer types to '%s' and '%s' [128]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 void
9 conversion_to_unconst(const char *cstr)
10 {
11 	char *str;
12 	/* expect+2: warning: operands of '=' have incompatible pointer types to 'char' and 'const char' [128] */
13 	/* expect+1: warning: 'str' set but not used in function 'conversion_to_unconst' [191] */
14 	str = cstr;
15 }
16