gempak icon indicating copy to clipboard operation
gempak copied to clipboard

warning: passing argument 1 of 'strtok' from incompatible pointer type

Open mjames-upc opened this issue 6 years ago • 0 comments

gdparseparm.c: In function 'gdparseparm':
gdparseparm.c:53:23: warning: passing argument 1 of 'strtok' from incompatible pointer type [-Wincompatible-pointer-types]
         key = strtok( &ptr, "=" );
                       ^
In file included from /home/gempak/GEMPAK7/gempak/include/geminc.h:35:0,
                 from gdgrib2.h:5,
                 from gdparseparm.c:1:
/usr/include/string.h:343:14: note: expected 'char * restrict' but argument is of type 'char **'
 extern char *strtok (char *__restrict __s, const char *__restrict __delim)
              ^~~~~~

mjames-upc avatar Dec 26 '18 22:12 mjames-upc