Shortly, these 8 'deprecated' warnings were caused
by using functions purposely marked as deprecated.
Possibly they are planned for removing. More below.
The warning 'deprecated' occur for 2 files only:
1. modules/pvData/testApp/misc/testByteBuffer.cpp lines 164 and 191
testOk1(strncmp(buff->getArray(),&src[2],6)==0);
testOk1(strncmp(buf->getArray(),expect,6)==0);
- the warning is when the getArray() is invoked and used as
strncmp() arg (the warning place is the ')' of the getArray())
the buff/buf are of type ByteBuffer(32) #include <pv/byteBuffer.h>
- see modules/pvData/src/misc/pv/byteBuffer.h for the getArray() definition
EPICS_ALWAYS_INLINE const char* getArray() const EPICS_DEPRECATED
- modules/libcom/src/osi/compiler/clang/compilerSpecific.h
#define EPICS_DEPRECATED __attribute__((deprecated))
- obviously the warning is generated purposely
2. modules/pvAccess/testApp/remote/testServer.cpp lines 2261 2270 2279
epics::pvData::StructureConstPtr s =
getFieldCreate()->createFieldBuilder()->
=> addBoundedString("value", 8)->
add("timeStamp", getStandardField()->timeStamp())->
createStructure();
epics::pvData::StructureConstPtr s = getFieldCreate()->createFieldBuilder()->
=> addBoundedArray("value", pvDouble, 8)-> add("timeStamp", getStandardField()->timeStamp())-> createStructure();
epics::pvData::StructureConstPtr s = getFieldCreate()->createFieldBuilder()->
=> addFixedArray("value", pvDouble, 8)-> add("timeStamp", getStandardField()->timeStamp())-> createStructure();
the warning place is always on the ')'.
=> https://github.com/epics-base/pvDataCPP/issues/52
[-Wdeprecated-declarations]
- modules/pvData/src/pv/pvIntrospect.h
#define PVD_DEPRECATED_52 PVD_DEPRECATED(\
"See https://github.com/epics-base/pvDataCPP/issues/52")
- these functions addBoundedString(), addBoundedArray(),
and addFixedArray() are marked by the PVD_DEPRECATED_52
- modules/pvData/src/misc/pv/serialize.h
defines PVD_DEPRECATED(msg) if defined(PVD_INTERNAL)
(without the PVD_INTERNAL it is defined as do-nothing)
Shortly, these 8 'deprecated' warnings were caused
by using functions purposely marked as deprecated.
Possibly they are planned for removing. More below.
The warning 'deprecated' occur for 2 files only: pvData/ testApp/ misc/testByteBu ffer.cpp lines 164 and 191 strncmp( buff->getArray( ),&src[ 2],6)== 0); strncmp( buf->getArray( ),expect, 6)==0); pvData/ src/misc/ pv/byteBuffer. h for the getArray() definition ALWAYS_ INLINE const char* getArray() const EPICS_DEPRECATED libcom/ src/osi/ compiler/ clang/compilerS pecific. h _((deprecated) )
1. modules/
testOk1(
testOk1(
- the warning is when the getArray() is invoked and used as
strncmp() arg (the warning place is the ')' of the getArray())
the buff/buf are of type ByteBuffer(32) #include <pv/byteBuffer.h>
- see modules/
EPICS_
- modules/
#define EPICS_DEPRECATED __attribute_
- obviously the warning is generated purposely
2. modules/ pvAccess/ testApp/ remote/ testServer. cpp lines 2261 2270 2279 :pvData: :StructureConst Ptr s = reate() ->createFieldBu ilder() -> g("value" , 8)-> "timeStamp" , getStandardFiel d()->timeStamp( ))-> ucture( ); :pvData: :StructureConst Ptr s =
getFieldCreate( )->createFieldB uilder( )-> ("value" , pvDouble, 8)->
add("timeStamp" , getStandardFiel d()->timeStamp( ))->
createStructure (); :pvData: :StructureConst Ptr s =
getFieldCreate( )->createFieldB uilder( )-> "value" , pvDouble, 8)->
add("timeStamp" , getStandardFiel d()->timeStamp( ))->
createStructure (); /github. com/epics- base/pvDataCPP/ issues/ 52 declarations] pvData/ src/pv/ pvIntrospect. h /github. com/epics- base/pvDataCPP/ issues/ 52") pvData/ src/misc/ pv/serialize. h PVD_INTERNAL)
epics:
getFieldC
=> addBoundedStrin
add(
createStr
epics:
=> addBoundedArray
epics:
=> addFixedArray(
the warning place is always on the ')'.
=> https:/
[-Wdeprecated-
- modules/
#define PVD_DEPRECATED_52 PVD_DEPRECATED(\
"See https:/
- these functions addBoundedString(), addBoundedArray(),
and addFixedArray() are marked by the PVD_DEPRECATED_52
- modules/
defines PVD_DEPRECATED(msg) if defined(
(without the PVD_INTERNAL it is defined as do-nothing)