question

Upvotes
Accepted
46 3 2 7

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 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
11.5k 16 7 10

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 5.0 MiB each and 10.0 MiB total.

Upvotes
23k 22 9 14

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea