[GRASS-git] [OSGeo/grass] 8da3d1: Avoid redefinition of macros (#1263)

nilason noreply at github.com
Wed Feb 3 23:35:11 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: 8da3d1826f9b7bf4546e41db3069790c24aac2e8
      https://github.com/OSGeo/grass/commit/8da3d1826f9b7bf4546e41db3069790c24aac2e8
  Author: nilason <n_larsson at yahoo.com>
  Date:   2021-02-04 (Thu, 04 Feb 2021)

  Changed paths:
    M lib/db/dbmi_base/dirent.c

  Log Message:
  -----------
  Avoid redefinition of macros (#1263)

Fixes -Wmacro-redefined compiler warning


  Commit: 3c108bf8e462ec1de6382520d41f798415569caa
      https://github.com/OSGeo/grass/commit/3c108bf8e462ec1de6382520d41f798415569caa
  Author: nilason <n_larsson at yahoo.com>
  Date:   2021-02-04 (Thu, 04 Feb 2021)

  Changed paths:
    M db/db.select/main.c
    M lib/db/dbmi_base/login.c
    M vector/v.category/main.c

  Log Message:
  -----------
  Fix expressions which evaluates to zero treated as a null pointer constant (#1263)

Fixes -Wnon-literal-null-conversion compiler warnings.

Co-authored-by: Markus Metz <markus.metz.giswork at gmail.com>


  Commit: 94cca332344eb43aee1eca00f5a51f249612f027
      https://github.com/OSGeo/grass/commit/94cca332344eb43aee1eca00f5a51f249612f027
  Author: nilason <n_larsson at yahoo.com>
  Date:   2021-02-04 (Thu, 04 Feb 2021)

  Changed paths:
    M display/d.mon/list.c
    M display/d.mon/stop.c
    M imagery/i.landsat.toar/landsat_set.c
    M imagery/i.landsat.toar/main.c
    M include/iostream/ami_stream.h
    M lib/db/dbmi_base/dbmscap.c

  Log Message:
  -----------
  Check content of string instead of its pointer address (#1263)

which will always evaluate to 'true'.

Fixes -Wpointer-bool-conversion compiler warnings.

Co-authored-by: Markus Metz <markus.metz.giswork at gmail.com>


Compare: https://github.com/OSGeo/grass/compare/7eee48d2b825...94cca332344e


More information about the grass-commit mailing list