Skip to content

Commit

Permalink
Add 'const' qualifier to mapset string (#1276)
Browse files Browse the repository at this point in the history
Fixes -Wincompatible-pointer-types-discards-qualifiers
compiler warnings.
  • Loading branch information
nilason committed Feb 8, 2021
1 parent 8b4c498 commit 972bf86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion raster/r.fill.stats/main.c
Expand Up @@ -743,7 +743,7 @@ int main(int argc, char *argv[])
/* program settings */
char *input;
char *output;
char *mapset;
const char *mapset;
double radius = 1.0;
unsigned long min_cells = 12;
double power = 2.0;
Expand Down
2 changes: 1 addition & 1 deletion raster3d/r3.retile/main.c
Expand Up @@ -87,7 +87,7 @@ int main(int argc, char *argv[])
struct GModule *module;
RASTER3D_Map *map = NULL;
int tileX, tileY, tileZ;
char *mapset;
const char *mapset;

/* Initialize GRASS */
G_gisinit(argv[0]);
Expand Down

0 comments on commit 972bf86

Please sign in to comment.