Sorry, stupid me... I clicked on the wrong link.

2014-10-27 17:32 GMT+01:00 Gert Van Assche <ger...@gmail.com>:

> Andrea, any chance I can download the latest version of the DLL?
>
> thanks
>
> gert
>
> 2014-09-28 23:28 GMT+02:00 aperi2007 <aperi2...@gmail.com>:
>
>> Hi Keith,
>> thx for hints.
>> I have apply all of them.
>>
>> The only one I like to explain:
>>
>> I know the warning for the void insted of int declaration of
>> stringmetricsFunc.
>> But if I put it as "int" I had a warning in the create_function that want
>> a void function.
>> So I preferred to maintain the warning on  return from stringmetricsFunc.
>>
>> However to have a compile without any warning,
>> I adopt this "hard" workaround:
>>
>> I define in wrapper_functions.h a
>> void stringmetricsFunc
>> and instead I declare a
>> int stringmetricFunc in wrapper_function.c
>>
>> Thx again,
>>
>> A.
>>
>>
>>
>> Il 28/09/2014 22:20, Keith Medcalf ha scritto:
>>
>>> src\wrapper_functions.c: In function 'stringmetricsFunc':
>>> src\wrapper_functions.c:350:16: warning: 'return' with a value, in
>>> function returning void [enabled by default]
>>>                  return (1);
>>>                  ^
>>>
>>> This is easy.  SQLite scalar functions are supposed to return an int
>>> status code.  That code is either SQLITE_ERR if there was an error, or
>>> SQLITE_OK if everything is OK.  So change the function definition to return
>>> an int, and the two return statements to return SQLITE_ERR (not 1) and
>>> SQLITE_OK (not nothing).
>>>
>>
>> _______________________________________________
>> sqlite-users mailing list
>> sqlite-users@sqlite.org
>> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>>
>
>
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to