[GRASS-git] [OSGeo/grass] c840f3: r.viewshed: initialize struct member before using ...

Mohan Yelugoti noreply at github.com
Mon Sep 16 10:03:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: c840f3c43874fa8ebb52ea45ddb1c1a3fec5bf55
      https://github.com/OSGeo/grass/commit/c840f3c43874fa8ebb52ea45ddb1c1a3fec5bf55
  Author: Mohan Yelugoti <ymdatta.work at gmail.com>
  Date:   2024-09-16 (Mon, 16 Sep 2024)

  Changed paths:
    M raster/r.viewshed/viewshed.cpp

  Log Message:
  -----------
  r.viewshed: initialize struct member before using struct (#4232)

* r.viewshed: initialize struct member before using struct

This was reported by cppcheck tool. Technically, we are not using
the member in the struct variable in any of the subsequent
functions, but it's a good practice to initialize all the struct
members whenever possible.

Signed-off-by: Mohan Yelugoti <ymdatta.work at gmail.com>

* Use right literal while initializing angle

Signed-off-by: Mohan Yelugoti <ymdatta.work at gmail.com>

---------

Signed-off-by: Mohan Yelugoti <ymdatta.work at gmail.com>



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