Skip to content

Commit eac87cf

Browse files
committed
Fix compilation when OpenMP is disabled.
Fixes #19006.
1 parent ef56560 commit eac87cf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/common/darktable.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,10 +1193,13 @@ int dt_init(int argc, char *argv[], const gboolean init_gui, const gboolean load
11931193
if(desired > possible)
11941194
dt_print(DT_DEBUG_ALWAYS,
11951195
"[dt_init --threads] requested %d ompthreads restricted to %d",
1196-
desired, possible);
1196+
desired, possible);
1197+
#ifdef _OPENMP
11971198
dt_print(DT_DEBUG_ALWAYS,
11981199
"[dt_init --threads] using %d threads of %d for openmp parallel sections %s",
1199-
darktable.num_openmp_threads, (int)dt_get_num_procs(), omp_get_dynamic() ? "(dynamic)" : "(static)");
1200+
darktable.num_openmp_threads, (int)dt_get_num_procs(),
1201+
omp_get_dynamic() ? "(dynamic)" : "(static)");
1202+
#endif
12001203
k++;
12011204
argv[k-1] = NULL;
12021205
argv[k] = NULL;

0 commit comments

Comments
 (0)