[GRASS-git] [OSGeo/grass] 99487a: r.smooth.edgepreserve: Fix OpenMP parallel for for...

Edouard Choinière noreply at github.com
Sun Jun 29 16:27:56 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 99487ae1a6440475b69fe725bc8371e3880bce10
      https://github.com/OSGeo/grass/commit/99487ae1a6440475b69fe725bc8371e3880bce10
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2025-06-29 (Sun, 29 Jun 2025)

  Changed paths:
    M raster/r.smooth.edgepreserve/pm.c

  Log Message:
  -----------
  r.smooth.edgepreserve: Fix OpenMP parallel for form for MSVC build (#5956)

* r.smooth.edgepreserve: Fix OpenMP parallel for form for MSVC

With MSVC, `#pragma omp parallel for` doesn't support defining the loop variable inside the for construct. It seems limited to C99 language rules. So, define the loop variables outside of the for loops.

* Initialize int col only once

* Update pm.c



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list