Module Name: src Committed By: rillig Date: Thu Apr 8 19:31:51 UTC 2021
Modified Files: src/tests/usr.bin/xlint/lint1: msg_247.c Log Message: tests/lint: refine comment and function name in test for pointer cast In a typical NetBSD build, there are about 100,000 lint warnings. About 50,000 of them are warning 247. About 38,000 of these are from OpenSSL and may be fixed by now. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/tests/usr.bin/xlint/lint1/msg_247.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_247.c diff -u src/tests/usr.bin/xlint/lint1/msg_247.c:1.10 src/tests/usr.bin/xlint/lint1/msg_247.c:1.11 --- src/tests/usr.bin/xlint/lint1/msg_247.c:1.10 Thu Apr 8 19:20:54 2021 +++ src/tests/usr.bin/xlint/lint1/msg_247.c Thu Apr 8 19:31:51 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: msg_247.c,v 1.10 2021/04/08 19:20:54 rillig Exp $ */ +/* $NetBSD: msg_247.c,v 1.11 2021/04/08 19:31:51 rillig Exp $ */ # 3 "msg_247.c" // Test for message: pointer cast from '%s' to '%s' may be troublesome [247] @@ -85,8 +85,8 @@ cast_to_void_pointer_then_to_char_pointe * first member. C guarantees that the pointer to the first member is at the * same address as the pointer to the whole struct. * - * Seen in external/mpl/bind/dist/lib/isc/mem.c for struct isc_mem and - * isc__mem. + * Seen in external/mpl/bind/dist/lib/isc/mem.c for 'struct isc_mem' and + * 'struct isc__mem'. */ struct counter { @@ -101,7 +101,7 @@ struct counter_impl { void *allocate(void); struct counter * -new_type_interface(void) +counter_new(void) { struct counter_impl *impl = allocate(); impl->public_part.count = 12345;