Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

/*	$NetBSD: msg_303.c,v 1.4 2023/03/28 14:44:35 rillig Exp $	*/
# 3 "msg_303.c"

/* Test for message: ANSI C forbids conversion of %s to %s [303] */

/* lint1-flags: -sw -X 351 */

void take_void_pointer(void *);

void *
to_void_pointer(void)
{
	/* expect+1: warning: ANSI C forbids conversion of function pointer to 'void *' [303] */
	return to_void_pointer;
}

void (*to_function_pointer(void *arg))(void)
{
	/* expect+1: warning: ANSI C forbids conversion of 'void *' to function pointer [303] */
	return arg;
}