Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved "misc.c does not need to be compiled" message #643

Merged
merged 2 commits into from
Jan 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading