Skip to content
Closed
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
7 changes: 7 additions & 0 deletions windows/test/hid_report_reconstructor_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ static const char* hidapi_strerror_compat(int errnum, char* buf, size_t buf_size
#endif
}

#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable: 4815)
#endif
static hidp_preparsed_data * alloc_preparsed_data_from_file(char* filename)
{
FILE* file;
Expand Down Expand Up @@ -481,6 +485,9 @@ static hidp_preparsed_data * alloc_preparsed_data_from_file(char* filename)

return pp_data;
}
#if defined(_MSC_VER)
#pragma warning(pop)
#endif

static BOOLEAN read_hex_data_from_text_file(const char *filename, unsigned char *data_out, size_t data_size, size_t *actual_read)
{
Expand Down
Loading