Skip to content

Commit

Permalink
fix: Windows SDK Compiler Warning (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Apr 9, 2021
1 parent 679b86b commit 43c8d9d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
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

0 comments on commit 43c8d9d

Please sign in to comment.