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  <20172018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Bug in dbUnitTest.c
From: Andrew Johnson <[email protected]>
To: Michael Davidsaver <[email protected]>
Cc: EPICS core-talk <[email protected]>
Date: Mon, 17 Apr 2017 17:42:42 -0500
Hi Michael,

Please fix the gcc-ism you introduced to the 3.15 branch in commit
8edefb9d which is currently causing all Jenkins' Windows builds to fail:

dbUnitTest.c: In function ‘testdbGetArrFieldEqual’:
dbUnitTest.c:223:32: error: pointer of type ‘void *’ used in arithmetic
[-Werror=pointer-arith]
         for(n=0; n<N; n++, gbuf+=vSize, pbuf+=vSize) {
                                ^
dbUnitTest.c:223:45: error: pointer of type ‘void *’ used in arithmetic
[-Werror=pointer-arith]
         for(n=0; n<N; n++, gbuf+=vSize, pbuf+=vSize) {
                                             ^
cc1: some warnings being treated as errors

http://stackoverflow.com/questions/3523145/pointer-arithmetic-for-void-pointer-in-c


Another option now in my ~/configure/CONFIG_USER.Common.linux-x86_64 file:

ifdef BASE_3_15
  OP_SYS_CFLAGS += -Werror=pointer-arith
  OP_SYS_CFLAGS += -fvisibility=hidden
  OP_SYS_CXXFLAGS += -fvisibility-inlines-hidden
endif

- Andrew

-- 
Arguing for surveillance because you have nothing to hide is no
different than making the claim, "I don't care about freedom of
speech because I have nothing to say." -- Edward Snowdon

Replies:
Re: Bug in dbUnitTest.c Michael Davidsaver

Navigate by Date:
Prev: Jenkins build is back to stable : epics-base-3.14 #239 APS Jenkins
Next: Re: Bug in dbUnitTest.c Michael Davidsaver
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Problem in macLib macExpandString? Andrew Johnson
Next: Re: Bug in dbUnitTest.c Michael Davidsaver
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
ANJ, 21 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·