Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: [Merge] lp:~epics-core/epics-base/rebased-atomics into lp:epics-base
From: Andrew Johnson <anj@aps.anl.gov>
To: "EPICS core-talk" <core-talk@aps.anl.gov>
Date: Fri, 9 Sep 2011 18:22:32 -0500
Hi Jeff,

On 2011-09-09 noreply@launchpad.net wrote:
> The proposal to merge lp:~epics-core/epics-base/rebased-atomics into
>  lp:epics-base has been updated.
> 
>     Status: Needs review => Merged

I merged the branch, but I am getting lots of warnings when I build on 64-bit 
system.  Maybe just cast the values to unsigned long and use %lu?

../epicsAtomicTest.cpp: In function ‘void testIncrDecr() [with T = int]’:
../epicsAtomicTest.cpp:229:   instantiated from here
../epicsAtomicTest.cpp:137: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp:229:   instantiated from here
../epicsAtomicTest.cpp:148: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp: In function ‘void testIncrDecr() [with T = long 
unsigned int]’:
../epicsAtomicTest.cpp:230:   instantiated from here
../epicsAtomicTest.cpp:134: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘long unsigned int’
../epicsAtomicTest.cpp:137: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp:230:   instantiated from here
../epicsAtomicTest.cpp:148: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp:151: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘long unsigned int’
../epicsAtomicTest.cpp: In function ‘void testAddSub() [with T = int]’:
../epicsAtomicTest.cpp:231:   instantiated from here
../epicsAtomicTest.cpp:171: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp:231:   instantiated from here
../epicsAtomicTest.cpp:182: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp: In function ‘void testAddSub() [with T = long unsigned 
int]’:
../epicsAtomicTest.cpp:232:   instantiated from here
../epicsAtomicTest.cpp:168: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘long unsigned int’
../epicsAtomicTest.cpp:171: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp:232:   instantiated from here
../epicsAtomicTest.cpp:182: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp:185: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘long unsigned int’
../epicsAtomicTest.cpp: In function ‘void testCAS() [with T = int]’:
../epicsAtomicTest.cpp:233:   instantiated from here
../epicsAtomicTest.cpp:200: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp:203: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp:233:   instantiated from here
../epicsAtomicTest.cpp:216: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp:219: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp: In function ‘void testCAS() [with T = long unsigned 
int]’:
../epicsAtomicTest.cpp:234:   instantiated from here
../epicsAtomicTest.cpp:200: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp:203: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp:234:   instantiated from here
../epicsAtomicTest.cpp:216: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp:219: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp: In function ‘void testCAS() [with T = void*]’:
../epicsAtomicTest.cpp:235:   instantiated from here
../epicsAtomicTest.cpp:200: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp:203: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp:235:   instantiated from here
../epicsAtomicTest.cpp:216: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’
../epicsAtomicTest.cpp:219: warning: format ‘%u’ expects type ‘unsigned int’, 
but argument 3 has type ‘size_t’

- Andrew

PS: I'll be on vacation next week, so responses will be sporadic if any.
-- 
Optimization is the process of taking something that works and
replacing it with something that almost works, but costs less.
-- Roger Needham


Replies:
RE: [Merge] lp:~epics-core/epics-base/rebased-atomics into lp:epics-base Jeff Hill
References:
[Merge] lp:~epics-core/epics-base/rebased-atomics into lp:epics-base noreply

Navigate by Date:
Prev: Re: [Merge] lp:~epics-core/epics-base/epicsR3.15-atomics into lp:epics-base Andrew Johnson
Next: vxWorks 6.8 and "#define _VSB_CONFIG_FILE" Ernest L. Williams Jr.
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: [Merge] lp:~epics-core/epics-base/rebased-atomics into lp:epics-base noreply
Next: RE: [Merge] lp:~epics-core/epics-base/rebased-atomics into lp:epics-base Jeff Hill
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·