Roger Binns wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Maurí­cio wrote:
>   
>> I know this is not a problem, but I would like to
>> remove this warning since it's not important for
>> the rest of the code. What could I do?
>>     
>
> The usual method is to cast the result to (void) but gcc still whines.
> I suggest you just live with it.  With many people reporting warning
> issues the assumption seems to be that somehow the compiler is reporting
> an important insight that the developers missed and could cause SQLite
> to trivially malfunction.  The opposite is actually true - SQLite
> functions just fine and the compilers are making mistaken claims.
> Consider those warnings pointing out an inadequacy in the compiler and
> get the compiler people to fix their program!
>
>   http://sqlite.org/testing.html
>
> Roger
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkmHdq4ACgkQmOOfHg372QQKAgCffeIn0vTBdSvx4MSD1owN8mg/
> K3EAn2ueJoNLXwfvnE52iiM6lf53FSe5
> =jjfQ
> -----END PGP SIGNATURE-----
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
>   

in io.h write returns an int - number of bytes written. Declare an int 
and catch the return value.  :)

Michael
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to