Subject: |
Re: [Merge] lp:~epics-core/epics-base/rebased-atomics into lp:epics-base |
From: |
Andrew Johnson <[email protected]> |
To: |
"EPICS core-talk" <[email protected]> |
Date: |
Fri, 9 Sep 2011 18:22:32 -0500 |
Hi Jeff,
On 2011-09-09 [email protected] 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
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- 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
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|