From 6f893313771650adcbd90cd5715a2f7d4784ec98 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Fri, 17 Apr 2026 09:52:00 -0700 Subject: [PATCH] Tasking Warning Tasking compiler does not support #warning and needs the #pragma message case where available. This will fix the wolfSSH QNX nightly from failing. --- wolfssl/wolfcrypt/settings.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index 9686337a22..f6991a1150 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -349,7 +349,11 @@ ((defined(BUILDING_WOLFSSL) && defined(WOLFSSL_USE_OPTIONS_H)) || \ (defined(BUILDING_WOLFSSL) && defined(WOLFSSL_OPTIONS_H) && \ !defined(EXTERNAL_OPTS_OPENVPN))) - #warning wolfssl/options.h included in compiled wolfssl library object. + #if !defined(_MSC_VER) && !defined(__TASKING__) + #warning wolfssl/options.h included in compiled wolfssl library object. + #else + #pragma message("Warning: wolfssl/options.h included in compiled wolfssl library object.") + #endif #endif #ifdef WOLFSSL_USER_SETTINGS @@ -369,7 +373,11 @@ * an application build -- then your application can avoid this warning by * defining WOLFSSL_NO_OPTIONS_H or WOLFSSL_CUSTOM_CONFIG as appropriate. */ - #warning "No configuration for wolfSSL detected, check header order" + #if !defined(_MSC_VER) && !defined(__TASKING__) + #warning "No configuration for wolfSSL detected, check header order" + #else + #pragma message("Warning: No configuration for wolfSSL detected, check header order") + #endif #endif /* Ensure WOLFSSL_DEBUG_CERTS is set when DEBUG_WOLFSSL is enabled, unless