Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mjames-upc opened this issue Dec 26, 2018 · 0 comments
Open

Comments

@mjames-upc
Copy link
Member

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)
              ^~~~~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant