On Wed, Nov 07, 2007 at 02:31:44PM -0500, Patrick Galbraith wrote:
> Christian,
>
> I'm still working on this. Many lines there are. I need to also find out
> about some unused variables, if they still have to be passed according to
> DBI spec. For instance:
>
> dbdimp.c: In function 'mysql_db_FETCH_attrib
> dbdimp.c:2160: warning: unused parameter 'dbh'
>
> The code:
>
> SV* dbd_db_FETCH_attrib(dbh, imp_dbh_t* imp_dbh, SV* keysv)
> {
>
> ...
>
> Indeed, "dbh" is never used.
>
> not sure if I have to adhere to passing a dbh handle as first arg or can do
> some sort of "__unused__" in the code to stifle these warnings.
I just add something like this:
dbh = dbh; /* silence unused warning */
somewhere in the sub.
Tim.