Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017 Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
<== Date ==> <== Thread ==>

Subject: Re: EPICS 7.0.1-pre1 (non-virtual destructors)
From: Dirk Zimoch <dirk.zimoch@psi.ch>
To: <core-talk@aps.anl.gov>
Date: Tue, 28 Nov 2017 16:19:30 +0100
g++ version 4.1.2 complains about the following classes having virtual functions but non-virtual destructors:

ChannelProviderRegistry from modules/pvAccess/src/client/pv/pvAccess.h
RefMonitor from modules/pvData/src/misc/pv/reftrack.h

The warnings are kind of annoying as they show up in every code that includes these two headers.

However newer gcc versions (4.4+) do not print this warning.

Giving the classes public virtual destructors fixes the warnings.

Replies:
Re: EPICS 7.0.1-pre1 (non-virtual destructors) Michael Davidsaver
References:
EPICS 7.0.1-pre1 Andrew Johnson
Re: EPICS 7.0.1-pre1 Dirk Zimoch

Navigate by Date:
Prev: Re: EPICS 7.0.1-pre1 Heinz Junkes
Next: Re: EPICS 7.0.1-pre1 (epicsException.h) Dirk Zimoch
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
Navigate by Thread:
Prev: Re: EPICS 7.0.1-pre1 -- vxWorks 6.2 Timo Korhonen
Next: Re: EPICS 7.0.1-pre1 (non-virtual destructors) Michael Davidsaver
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
ANJ, 29 Nov 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·