Commit 699dcb31 authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

tests now compiling with clang++

parents fce198f9 d20fb217
......@@ -26,7 +26,7 @@ read_table(const char *table_fname, size_t *table_len)
*table_len = (size_t)-1;
return NULL;
}
while (fscanf(tablefp, "%08"PRIx32" %d\n", &cksum_temp, &code) == 2)
while (fscanf(tablefp, "%08" PRIx32" %d\n", &cksum_temp, &code) == 2)
{
ENSURE_ARRAY_SIZE(table, table_size, table_used + 1);
table[table_used].code = code;
......
......@@ -45,7 +45,7 @@ main()
uint32_t cksum_result = memcrc(test_data, num_blocks * block_size);
if (cksum_result != UINT32_C(0xc47779cd))
{
printf("unexpected crc result: 0x%8"PRIx32"\n", cksum_result);
printf("unexpected crc result: 0x%8" PRIx32"\n", cksum_result);
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
......
......@@ -144,7 +144,11 @@ static void
compute_curvilinear(double *coords_,
const struct cart_coord a[4], size_t sizex, size_t sizey)
{
#ifdef __cplusplus
auto coords = (double (*)[sizey][sizex])coords_;
#else
double (*coords)[sizey][sizex] = (double (*)[sizey][sizex])coords_;
#endif
for (size_t j = 0; j < sizey; ++j)
{
double g = (double)j / (double)(sizey - 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment