On 2/24/10 9:36 , "Simon Davies" <simon.james.dav...@googlemail.com> wrote:

> On 23 February 2010 17:44, newlog <newlog2...@yahoo.fr> wrote:
>> OK,
>> 
>> I really don't understand....
>> 
> 
> Rogue semicolon on line
> 
>>  if( sqlite3_close( db ) != SQLITE_OK );
> 
> Regards,
> Simon

I have been bitten by such silly mistakes often enough!

This is why I have switched to a compiler with sanity checks. On this line
of code, it warns:

"if statement has empty body"

This compiler is llvm. Check it out at http://llvm.org
You can test for this mistake on the demo page at http://llvm.org/demo

For example insert a spurious ; in this line in the proposed factorial demo

  if (X == 0); return 1;

Llvm is quite amazing for a number of reasons I won't go into here. Check it
out.

Jean-Denis

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

Reply via email to