Anybody doing tests using MSVC?

Gisle Vanem gvanem at yahoo.no
Mon Aug 3 13:35:36 UTC 2020


Hello list.

Seems several test programs are not meant to be
compiled using MSVC. E.g. the empty initialisers in
'lib/dns/tests/sigs_test.c':
   static void
   compare_tuples(const zonediff_t *expected, dns_difftuple_t *found,
	         size_t index) {
   	char found_covers[DNS_RDATATYPE_FORMATSIZE] = {};
	char found_type[DNS_RDATATYPE_FORMATSIZE] = {};

is not well liked by MSVC-2019:
   sigs_test.c(104): error C2059: syntax error: '}'
   sigs_test.c(105): error C2059: syntax error: '}'

Elsewhere, there are error in thread-function prototypes:
   mem_test.c(407): error C2440: 'function': cannot convert from
    'isc_threadresult_t (__cdecl *)(isc_threadarg_t)' to 'isc_threadfunc_t'
   mem_test.c(468): error C2440: 'function': cannot convert from
    'isc_threadresult_t (__cdecl *)(isc_threadarg_t)' to 'isc_threadfunc_t'

Adding a 'WINAPI' at some places fixes it.

But I'm puzzled that no-one seems to perform the tests using
MSVC. Or at-least clang-cl.

-- 
--gv


More information about the bind-workers mailing list