Re: splint giving error message

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

 



On 10/18/06, amit mehta <amit4g@xxxxxxxxx> wrote:
hi,

 The small stupid piece of code is:
  1 /* program to find the return status*/
       2 #include<stdio.h>
       3 #include<stdlib.h>
       4 #include<unistd.h>
       5 int main(void)
       6 {
       7     exit(0);
       8 }

 while using "splint" for checking coding errors, i got the following error
message:
 exit.c:3: Include file <unistd.h> matches the name of a POSIX library, but
the
     POSIX library is not being used.  Consider using +posixlib or
     +posixstrictlib to select the POSIX library, or -warnposix to suppress
this
     message
 Header name matches a POSIX header, but the POSIX library is not selected.

 Finished checking --- 1 code warning

 As mentioned above this error message can be removed by using +posixlib
switch as:
 $ splint +posixlib exit.c

I think you should do the -warnposix bit, actually, but whatever. How
in the world is this at all *kernel* related? Find the right mailing
list for your questions, please.

Thanks,
Nish

--
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