Version
5.9.0
Description
When compiling wolfSSL with the TASKING VX-toolset for TriCore (C compiler v6.3r1 Build 19041558), the build fails because the compiler does not support the #warning preprocessing directive.
The compiler reports:
ctc E274: ["C:/work/git/wolfssl/wolfcrypt/src/random.c" 3924/10] undefined preprocessing directive "#warning"
ctc E274: ["C:/work/git/wolfssl/wolfssl/wolfcrypt/settings.h" 4132/14] undefined preprocessing directive "#warning"
Proposed fix
To improve portability, the directive could be guarded with compiler detection macros:
#if !defined (_MSC_VER) && !defined (__TASKING__)
#warning "Warning: write a real random seed!!!!, just for testing now"
#else
#pragma message("Warning: write a real random seed!!!!, just for testing now")
#endif
Version
5.9.0
Description
When compiling wolfSSL with the TASKING VX-toolset for TriCore (C compiler v6.3r1 Build 19041558), the build fails because the compiler does not support the #warning preprocessing directive.
The compiler reports:
Proposed fix
To improve portability, the directive could be guarded with compiler detection macros: