1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 <2010> 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 <2010> 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: dbGetSevr on epics 3.14.11 |
From: | Ralph Lange <[email protected]> |
To: | "[email protected]" <[email protected]> |
Date: | Thu, 26 Aug 2010 11:23:14 -0400 |
Thanks again, Ralph
Hello,
I'm upgrading from 3.14.8.2 to 3.14.11 and found a problem with dbGetSevr. dbGetSevr used to be a prototype in 3.14.8.2 and is now a macro in dbAccessDefs.h:
#define dbGetSevr(PLINK,PSEVERITY) \ dbGetAlarm((PLINK),NULL,(PSEVERITY));
That ";" at the end causes problems (ie: if (dbGetSevr(plink,&severity)) break;) and should be removed.
Thank you, Stephanie Allison
=== modified file 'src/db/dbAccessDefs.h' --- src/db/dbAccessDefs.h 2009-04-03 20:54:00 +0000 +++ src/db/dbAccessDefs.h 2010-08-26 15:08:08 +0000 @@ -216,7 +216,7 @@ ? 0 \ : ( ( (struct dbAddr *)( (PLNK)->value.pv_link.pvt) ) ) ) #define dbGetSevr(PLINK,PSEVERITY) \ - dbGetAlarm((PLINK),NULL,(PSEVERITY)); + dbGetAlarm((PLINK),NULL,(PSEVERITY)) epicsShareFunc long epicsShareAPI dbPutSpecial(struct dbAddr *paddr,int pass); epicsShareFunc struct rset * epicsShareAPI dbGetRset(const struct dbAddr *paddr);