question

Upvotes
Accepted
163 11 11 18

ETA compilation warning

I get this compilation warning from an included ETA header file. Can it be fixed ?


In file included from ../../../libs/upa/include/rtr/rsslRDMMsg.h:12,

from ../../../libs/upa/include/rtr/rsslReactor.h:12,

from ../sslsrc.h:76,

from ../mocks/sslsrc_mocks.h:19,

from ../upa/test_upa.c:14:

../../../libs/upa/include/rtr/rsslRDMLoginMsg.h: In function ‘rsslInitDefaultRDMLoginRequest’:

../../../libs/upa/include/rtr/rsslRDMLoginMsg.h:227:77: warning: ‘/net’ directive output may be truncated writing 4 bytes into a region of size between 1 and 256 [-Wformat-truncation=]

snprintf(pRequest->defaultPosition, sizeof(pRequest->defaultPosition), "%s/net", tmpHostNameBlock);

^~~~

../../../libs/upa/include/rtr/rsslRDMLoginMsg.h:227:3: note: ‘snprintf’ output between 5 and 260 bytes into a destination of size 256

snprintf(pRequest->defaultPosition, sizeof(pRequest->defaultPosition), "%s/net", tmpHostNameBlock);

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


elektronrefinitiv-realtimeelektron-sdkrrteta-apielektron-transport-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
24.4k 53 17 14

Hello @andy.sciascia

The issue has been fixed in RTSDK version 2.0.1 G1 on April 2021. The fixed is included in the current RTSDK versions too.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
32.2k 40 11 19

Hello @andy.sciascia,

My understanding is that you are reporting a suspected issue with the latest version of Refinitiv Realtime SDK, formerly Elektron SDK.

If this is correct, please report the issue directly to Refinitiv Realtime SDK development team, via Refinitiv Realtime SDK on GitHub -> Issues, including all relevant info to reproduce the warning.

If this is with an older version, please test with the latest version that includes all the issue fixes applied up to the present date, the SDK can be downloaded via Refinitiv Real-Time SDK - C/C++ -> Downloads tab.

Thanks,

-AHS

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.