Skip to content

Commit

Permalink
Merge pull request wolfSSL#643 from gojimmypi/PR-improved-misc-message
Browse files Browse the repository at this point in the history
Improved "misc.c does not need to be compiled" message
  • Loading branch information
ejohnstown authored Jan 12, 2024
2 parents 421c366 + f4881e9 commit debba8b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,11 @@
/* Check for if compiling misc.c when not needed. */
#if !defined(WOLFSSH_MISC_INCLUDED) && !defined(NO_INLINE) && \
!defined(WOLFSSH_IGNORE_FILE_WARN)
#define MISC_WARNING "misc.c does not need to be compiled when using inline (NO_INLINE not defined))"

#ifndef _MSC_VER
#warning MISC_WARNING
#warning "misc.c does not need to be compiled when using inline (NO_INLINE not defined))"
#else
#pragma message("warning: " MISC_WARNING)
#pragma message("warning: misc.c does not need to be compiled when using inline (NO_INLINE not defined))")
#endif

#else /* !WOLFSSL_MISC_INCLUDED && !NO_INLINE && !WOLFSSH_IGNORE_FILE_WARN */
Expand Down

0 comments on commit debba8b

Please sign in to comment.