Comment 21 for bug 1905159

Revision history for this message
Jerzy Tarasiuk (tarasiukj) wrote :

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)