on linux, pid_t is an int and on solaris, it is a long.  While probably 
unnecessary, you can cast to (long) and change the printf to %ld.

-David Hall


----- Original Message ----
> From: T.J. Yang <[email protected]>
> To: user fossil <[email protected]>
> Sent: Mon, October 19, 2009 9:09:33 PM
> Subject: [fossil-users] compilation warning message: main_.c:828: warning: 
> int format, pid_t arg (arg 3)
> 
> 
> Getting the ONLY  compiler warning message on OpenSolaris 124.
> 
> gcc -g -Os -Wall  -I. -I./src -o main.o -c main_.c
> main_.c: In function `cmd_webserver':
> main_.c:828: warning: int format, pid_t arg (arg 3)
> gcc -g -Os -Wall  -I. -I./src -o manifest.o -c manifest_.c
> gcc -g -Os -Wall  -I. -I./src -o md5.o -c md5_.c
> 
> 
> 
> main_.c
> 
> 
>   g.httpIn = stdin;
>   g.httpOut = stdout;
>   if( g.fHttpTrace ){
>     fprintf(stderr, "====== SERVER pid %d =======\n", getpid());
>   }
> 
> 
> Anyone know the fix ? I am not yet able to fix the C code.
> 
> T.J. Yang
> 
>                           
> _________________________________________________________________
> Hotmail: Powerful Free email with security by Microsoft.
> http://clk.atdmt.com/GBL/go/171222986/direct/01/
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users



      
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to