Skip Menu |

This queue is for tickets about the BerkeleyDB CPAN distribution.

Report information
The Basics
Id: 22588
Status: resolved
Priority: 0/
Queue: BerkeleyDB

People
Owner: Nobody in particular
Requestors: at [...] altlinux.ru
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [PATCH] fix DB_ENV() return value
Date: Thu, 26 Oct 2006 07:52:48 +0400
To: bug-berkeleydb [...] rt.cpan.org
From: Alexey Tourbin <at [...] altlinux.ru>
Spotted by gcc. BerkeleyDB.c: In function 'XS_BerkeleyDB__Env_DB_ENV': BerkeleyDB.c:2394: warning: unused variable 'targ' --- BerkeleyDB.xs | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/BerkeleyDB.xs b/BerkeleyDB.xs index c4df81e..e1a9357 100644 --- a/BerkeleyDB.xs +++ b/BerkeleyDB.xs @@ -2086,6 +2086,8 @@ DB_ENV(env) RETVAL = env->Env ; else RETVAL = NULL; + OUTPUT: + RETVAL void -- 1.4.3.GIT
From: PMQS [...] cpan.org
On Wed Oct 25 23:53:02 2006, at@altlinux.ru wrote: Show quoted text
> Spotted by gcc. > BerkeleyDB.c: In function 'XS_BerkeleyDB__Env_DB_ENV': > BerkeleyDB.c:2394: warning: unused variable 'targ' > --- > BerkeleyDB.xs | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/BerkeleyDB.xs b/BerkeleyDB.xs > index c4df81e..e1a9357 100644 > --- a/BerkeleyDB.xs > +++ b/BerkeleyDB.xs > @@ -2086,6 +2086,8 @@ DB_ENV(env) > RETVAL = env->Env ; > else > RETVAL = NULL; > + OUTPUT: > + RETVAL > > > void
Thanks - I've applied the patch to my deveopment copy. Paul