Skip to content

TASKING TriCore compiler does not recognize #warning directive (ctc E274) #10108

@edzardsh

Description

@edzardsh

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions