[GRASS-git] [OSGeo/grass] 5e2fd3: rst/interpfl lib: change devi arg to bool (#1271)

nilason noreply at github.com
Thu Aug 19 12:27:34 PDT 2021


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: 5e2fd304265e59699e63e0cebd5839df257074c6
      https://github.com/OSGeo/grass/commit/5e2fd304265e59699e63e0cebd5839df257074c6
  Author: nilason <n_larsson at yahoo.com>
  Date:   2021-08-19 (Thu, 19 Aug 2021)

  Changed paths:
    M lib/rst/interp_float/init2d.c
    M lib/rst/interp_float/interpf.h
    M lib/rst/interp_float/point2d.c
    M raster/r.resamp.rst/main.c
    M vector/v.surf.rst/main.c

  Log Message:
  -----------
  rst/interpfl lib: change devi arg to bool (#1271)

Output deviation argument to IL_init_params_2d() and in the
interp_params struct, was defined as FILE*. In practice a char* of the
file path was given to the function in 'v.surf.rst/main.c' and this
pointer's only use was to check whether it was NULL or not. It was used
as a flag. This changes the argument to be a bool.

Addresses a -Wincompatible-pointer-types compiler warning.




More information about the grass-commit mailing list