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

fix: Windows SDK Compiler Warning #511

Merged
merged 2 commits into from
Apr 9, 2021
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,8 @@ target_link_libraries(sentry_fuzz_json PRIVATE
"$<$<PLATFORM_ID:Linux>:rt>"
)

if(MSVC)
target_compile_options(sentry_fuzz_json PRIVATE $<BUILD_INTERFACE:/wd5105>)
endif()

add_test(NAME sentry_fuzz_json COMMAND sentry_fuzz_json)
9 changes: 8 additions & 1 deletion tests/unit/fuzz.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,17 @@ afl-fuzz -i fuzzing-examples -o fuzzing-results -- fuzzing/sentry_fuzz_json @@

#undef NDEBUG

#ifdef _WIN32
# define WIN32_LEAN_AND_MEAN
# define NOMINMAX
# define _CRT_SECURE_NO_WARNINGS
#endif

#include "sentry.h"

#include <assert.h>
#include <string.h>

#include "sentry.h"
#include "sentry_json.h"
#include "sentry_path.h"
#include "sentry_value.h"
Expand Down