EPICS Controls 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  2018  2019  2020  <20212022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: [Bug 1905159] Re: Fix warnings from recent compiler versions
From: Gabriel Fedel via Core-talk <core-talk at aps.anl.gov>
To: core-talk at aps.anl.gov
Date: Fri, 12 Mar 2021 09:18:20 -0000
Thank you Andrew for the explanations.


I've tried to solve the gdd warnings, but I haven't found a solution yet.
My first try was to use the copy method:

--- a/src/ca/legacy/gdd/gddI.h                                                  
+++ b/src/ca/legacy/gdd/gddI.h                                                  
@@ -114,7 +114,7 @@ inline void gdd::setStatSevr(aitInt16 stat, aitInt16 sevr)  
         { status.s.aitStat = stat; status.s.aitSevr = sevr; }                  
                                                                                
 inline gdd& gdd::operator=(const gdd& v)                                       
-       { memcpy(this,&v,sizeof(gdd)); return *this; }                          
+       {   this->copy(&v); return *this; }                                     
                                                                                
 inline int gdd::isScalar(void) const { return dimension()==0?1:0; }            
 inline int gdd::isContainer(void) const                                        


But with this change the code doesn't compile, and I don't know why. I got this:

make[3]: *** No rule to make target '../O.Common/gddApps.h', needed by '../../../../../include/gddApps.h'.  Stop.      
make[2]: *** [../../../../configure/RULES_ARCHS:58: install.linux-x86_64] Error 2                                      
make[1]: *** [../configure/RULES_DIRS:85: ca/legacy/gdd.install] Error 2                                               
make: *** [configure/RULES_DIRS:85: src.install] Error 2

-- 
You received this bug notification because you are a member of EPICS
Core Developers, which is subscribed to EPICS Base.
Matching subscriptions: epics-core-list-subscription
https://bugs.launchpad.net/bugs/1905159

Title:
  Fix warnings from recent compiler versions

Status in EPICS Base:
  Triaged

Bug description:
  Builds of EPICS Base using recent versions of gcc, clang and MSVC
  generate compiler warnings, which we try to minimize if possible. Some
  of these warnings can be prevented with suitable code modifications,
  although the code must still build on the older compilers and other
  architectures that we support.

  Both the 3.15 and 7.0 branches can be examined for warnings; fixes
  made on the 3.15 branch get propagated to the 7.0 branch during
  periodic up-merges, so there is no need to make the same changes to
  both branches. Some code only exists on one branch; for example the
  gdd module was unbundled after 3.15, and there are many new modules in
  7.0.

To manage notifications about this bug go to:
https://bugs.launchpad.net/epics-base/+bug/1905159/+subscriptions

Navigate by Date:
Prev: Build completed: EPICS Base 3.15 base-3.15-77 AppVeyor via Core-talk
Next: [Bug 1905159] Re: Fix warnings from recent compiler versions Gabriel Fedel via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: [Bug 1905159] Re: Fix warnings from recent compiler versions Andrew Johnson via Core-talk
Next: [Bug 1905159] Re: Fix warnings from recent compiler versions Gabriel Fedel via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 12 Mar 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·