S
somenath
Hi All,
I was trying to learn the use of "lint" (A tool for statically
checking C programs)
So that I wrote simple c program as mentioned bellow
#include<stdio.h>
int main(void)
{
printf("\n Hello World\n");
return 0;
}
But when I use lint to check my code I get the bellow mentioned
warning
helloWorld.c: (in function main)
helloWorld.c:4:2: Called procedure printf may access file system
state, but
globals list does not include globals fileSystem
A called function uses internal state, but the globals list for the
function
being checked does not include internalState (Use -internalglobs to
inhibit
warning)
helloWorld.c:4:2: Undocumented modification of file system state
possible from
call to printf: printf("\n Hello World\n")
report undocumented file system modifications (applies to
unspecified
functions if modnomods is set) (Use -modfilesys to inhibit warning)
Could you please let me know what is the warning is all about ?
How can I fix this warning ?
Regards,
Somenath
I was trying to learn the use of "lint" (A tool for statically
checking C programs)
So that I wrote simple c program as mentioned bellow
#include<stdio.h>
int main(void)
{
printf("\n Hello World\n");
return 0;
}
But when I use lint to check my code I get the bellow mentioned
warning
helloWorld.c: (in function main)
helloWorld.c:4:2: Called procedure printf may access file system
state, but
globals list does not include globals fileSystem
A called function uses internal state, but the globals list for the
function
being checked does not include internalState (Use -internalglobs to
inhibit
warning)
helloWorld.c:4:2: Undocumented modification of file system state
possible from
call to printf: printf("\n Hello World\n")
report undocumented file system modifications (applies to
unspecified
functions if modnomods is set) (Use -modfilesys to inhibit warning)
Could you please let me know what is the warning is all about ?
How can I fix this warning ?
Regards,
Somenath