From c7dca04233cfc34ce3165ad9484f0afb606f4716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20B=C3=B6ck?= Date: Wed, 1 May 2024 21:55:38 +0100 Subject: [PATCH] sw: Fix warning in `kmp.c` Compiling the file would previously emit ``` warning: missing terminating '"' character [-Winvalid-pp-token] ``` due to what I assume is a mistake introduced through some auto formatter. Multi line strings are actually illegal in C and Clang and GCC are simply kind enough to only emit a warning. The C does however implicitly concatenate two string literals appearing next to each other producing the intended result. --- sw/snRuntime/src/omp/kmp.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sw/snRuntime/src/omp/kmp.c b/sw/snRuntime/src/omp/kmp.c index 6ce2394bdb..4cab683c80 100644 --- a/sw/snRuntime/src/omp/kmp.c +++ b/sw/snRuntime/src/omp/kmp.c @@ -244,8 +244,8 @@ void __kmpc_for_static_init_4(ident_t *loc, kmp_int32 gtid, kmp_int32 globalUpper = *pupper; KMP_PRINTF(50, - "__kmpc_for_static_init_4 gtid %d schedtype %d plast %#x - p[%#x, " + "__kmpc_for_static_init_4 gtid %d schedtype %d plast %#x" + "p[%#x, " "%#x, %#x] incr %d chunk %d\n", gtid, sched, (uint32_t)plastiter, (uint32_t)plower, (uint32_t)pupper, (uint32_t)pstride, incr, chunk); @@ -287,8 +287,7 @@ void __kmpc_for_static_init_4(ident_t *loc, kmp_int32 gtid, } KMP_PRINTF(10, - "__kmpc_for_static_init_4 plast %4d p[l %4d, u %4d, i %4d, str - " + "__kmpc_for_static_init_4 plast %4d p[l %4d, u %4d, i %4d, str" "%4d] chunk %d\n", *plastiter, *plower, *pupper, incr, *pstride, chunk); }