Re: What does this warning mean?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 21, 2004 at 20:20:37 -0000, Saqib Shaikh wrote:
> When compiling a kernel module I get the following warning:
> warning: initialization from incompatible pointer type

It means exactly what it says. An initialization assigns a pointer to
some type to a variable declared as a pointer to different effective
type.

Function types often produce this kind of warning, because though void*
is considered compatible to int* (or anything_else*), (*)(void *) and
(*)(int *) are NOT considered compatible.

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@ucw.cz>

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux