Fix a compiler warnings in context_api under clang and statically link.

While dynamic linking works on linux & Mac OS due to rpath support 
Windows can't find the dll when debugging the test case unless it's 
copied into the tests builddir or it has it's working dir set to the 
DLL's builddir.
This commit is contained in:
Tim Eves 2018-10-29 16:05:06 +07:00
parent 5f45ea450e
commit 9af3308ef3
2 changed files with 3 additions and 3 deletions

View file

@ -30,8 +30,8 @@ namespace
auto const bmp_ctxt_size = count_codepoints(initial_bmp_context),
smp_ctxt_size = count_codepoints(initial_smp_context);
km_kbp_context_item test_marker_ctxt[2] = {
{KM_KBP_CT_MARKER, {0,}, 0xDEADBEEF},
{KM_KBP_CT_END, {0,}, 0}
{KM_KBP_CT_MARKER, {0,}, {0xDEADBEEF}},
{KM_KBP_CT_END, {0,}, {0}}
};

View file

@ -7,5 +7,5 @@
ctxt = executable('context-api', 'context_api.cpp',
include_directories: [inc, libsrc],
dependencies: [kmnkbp])
objects: lib.extract_objects('km_kbp_context_api.cpp', 'json.cpp'))
test('context-api', ctxt)