Skip to content

Commit

Permalink
gnu warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed May 17, 2024
1 parent 99c17d4 commit 9ac77f7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ extern "C" {
auto library = LoadLibraryExW(L"sample_component_json_validator.dll", 0, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS);
assert(library != 0);

auto create = reinterpret_cast<CreateJsonValidator>(GetProcAddress(library, "CreateJsonValidator"));
auto create = (CreateJsonValidator)GetProcAddress(library, "CreateJsonValidator");
assert(create);

auto validate = reinterpret_cast<ValidateJson>(GetProcAddress(library, "ValidateJson"));
auto validate = (ValidateJson)GetProcAddress(library, "ValidateJson");
assert(validate);

auto close = reinterpret_cast<CloseJsonValidator>(GetProcAddress(library, "CloseJsonValidator"));
auto close = (CloseJsonValidator)GetProcAddress(library, "CloseJsonValidator");
assert(close);

std::string_view schema = "{\"maxLength\": 5}";
Expand Down

0 comments on commit 9ac77f7

Please sign in to comment.