compiler warnings, 64 bit MacOS build
Bug #541365 reported by
Jeff Hill
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Fix Released
|
Wishlist
|
Andrew Johnson |
Bug Description
Tom Pelaia sent some warnings he saw when building base for 64 bit MacOS.
The warning messages are attached to his mail message in my mail box.
When I stuffed the build output directly into mantis it was truncated,
Original Mantis Bug: mantis-337
http://
To post a comment you must log in.
Some of these had already been fixed in R3.14.10, and I just fixed all of the others that were outside of Jeff's code. With the -Wshorten-64-to-32 flag to gcc/g++ added, the warnings produced by a darwin-x86 build of the 3.14 branch are now:
../inetAddrID.h: In member function 'bool udpiiu: :beaconAction( const caHdr&, const osiSockAddr&, const epicsTime&)': :subscriptionRe quest(epicsGuar d<epicsMutex> &, nciu&, netSubscription&)': :popUInt8( )': cpp:181: warning: 'tmp' may be used uninitialized in this function :popUInt16( )': cpp:200: warning: 'tmp' may be used uninitialized in this function :popUInt32( )': cpp:219: warning: 'tmp' may be used uninitialized in this function :popOldMsgHeade r(caHdrLargeArr ay&)': cpp:241: warning: 'smallPostsize' may be used uninitialized in this function cpp:245: warning: 'smallCount' may be used uninitialized in this function est': dNotifyCache. cpp: In member function 'void dbContextReadNo tifyCacheAlloca tor::show( unsigned int) const': dNotifyCache. cpp:159: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'size_t'
../inetAddrID.h:39: warning: 'ina$sin_zero$7' is used uninitialized in this function
../inetAddrID.h:39: warning: 'ina$sin_zero$6' is used uninitialized in this function
../inetAddrID.h:39: warning: 'ina$sin_zero$5' is used uninitialized in this function
../inetAddrID.h:39: warning: 'ina$sin_zero$4' is used uninitialized in this function
../inetAddrID.h:39: warning: 'ina$sin_zero$3' is used uninitialized in this function
../inetAddrID.h:39: warning: 'ina$sin_zero$2' is used uninitialized in this function
../inetAddrID.h:39: warning: 'ina$sin_zero$1' is used uninitialized in this function
../inetAddrID.h:39: warning: 'ina$sin_zero$0' is used uninitialized in this function
../inetAddrID.h:39: warning: 'ina$sin_len' is used uninitialized in this function
../tcpiiu.cpp: In member function 'virtual void tcpiiu:
../tcpiiu.cpp:1558: warning: implicit conversion shortens 64-bit value into a 32-bit value
../tcpiiu.cpp:1559: warning: implicit conversion shortens 64-bit value into a 32-bit value
../tcpiiu.cpp:1560: warning: implicit conversion shortens 64-bit value into a 32-bit value
../comQueRecv.cpp: In member function 'epicsUInt8 comQueRecv:
../comQueRecv.
../comQueRecv.cpp: In member function 'epicsUInt16 comQueRecv:
../comQueRecv.
../comQueRecv.cpp: In member function 'epicsUInt32 comQueRecv:
../comQueRecv.
../comQueRecv.cpp: In member function 'bool comQueRecv:
../comQueRecv.
../comQueRecv.
../acctst.c: In function 'monitorUpdateT
../acctst.c:2183: warning: implicit conversion shortens 64-bit value into a 32-bit value
../acctst.c:2238: warning: implicit conversion shortens 64-bit value into a 32-bit value
../dbContextRea
../dbContextRea
../camessage.c: In function 'read_action':
../camessage.c:653: warning: comparison is always false due to limited range of data type
Cap5.c: In function 'boot_Cap5':
Cap5.c:1811: warning: unused variable 'items'
Cap5.c: In function 'boot_Cap5':
Cap5.c:1811: warning: unused variable 'items'