WolfSSL Warning
Posted: Tue Oct 12, 2021 9:26 am
One of the many warnings in the Wolf source code, is in NbWoldSsl.cpp, line 991:
The Init function is defined as:
At the top of file NbWolfSsl.cpp, line 78, SSL_QUEUE_SIZE is defined as 1000. Wouldn't that set 'size' to zero?
Code: Select all
C:/nburn/libraries/crypto/NetBurner/NbWolfSsl.cpp:991:44: warning: unsigned conversion from 'int' to 'uint8_t' {aka 'unsigned char'} changes value from '1000' to '232' [-Woverflow]
gSslQueue.Init(&(gSslQueueStorage[0]), SSL_QUEUE_SIZE);
^~~~~~~~~~~~~~
Code: Select all
uint8_t Init(void **pQueueStorage, uint8_t size);