msg_128.c revision 1.6
11.6Srillig/* $NetBSD: msg_128.c,v 1.6 2023/07/07 06:03:31 rillig Exp $ */ 21.1Srillig# 3 "msg_128.c" 31.1Srillig 41.5Srillig// Test for message: operands of '%s' have incompatible pointer types to '%s' and '%s' [128] 51.1Srillig 61.3Srilligvoid 71.3Srilligconversion_to_unconst(const char *cstr) 81.3Srillig{ 91.3Srillig char *str; 101.6Srillig /* expect+2: warning: 'str' set but not used in function 'conversion_to_unconst' [191] */ 111.5Srillig /* expect+1: warning: operands of '=' have incompatible pointer types to 'char' and 'const char' [128] */ 121.4Srillig str = cstr; 131.3Srillig} 14