Dan <[EMAIL PROTECTED]> writes: > > The two functions that call rtreeInit() are registered as callbacks > with SQLite. When you register the callback function you also specify > a void* pointer that is passed to the callback whenever it is invoked. > This is not an uncommon pattern in C code. > > So, since the interface allows us to pass a void* as context to the > callback function, but in this instance we really just want an integer, > the value has to be cast to a void* when the callback function is > registered, and back to an integer when the callback is invoked. > > A lot of compilers throw a warning when they encounter this. In my > opinion (having never had anything to do with compiler design or > implementation) they shouldn't. > > Dan.
See also (e.g.) http://gcc-hcs12.com/documnets/gcc_hcs12_helps/gcc_4.html#SEC67 MikeW -gmane-pad-gmane-pad-gmane-pad-gmane-pad-gmane-pad--gmane-pad- -gmane-pad-gmane-pad-gmane-pad-gmane-pad-gmane-pad--gmane-pad- _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users