You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While compiling the code under Debian Buster, gcc shows these warnings regarding incompatible pointer type passed to sscanf
postpuff.c: In function ‘file_ok_proc’:
postpuff.c:427:12: warning: passing argument 1 of ‘sscanf’ from incompatible pointer type [-Wincompatible-pointer-types]
sscanf(&buf, "%s %s %s %s %s", tmp[0], tmp[1], tmp[2], tmp[3], tmp[4]);
^~~~
In file included from postpuff.c:20:
/usr/include/stdio.h:399:43: note: expected ‘constchar * restrict’ but argument is of type ‘char (*)[200]’
externintsscanf (constchar *__restrict __s,
~~~~~~~~~~~~~~~~~~~~~~~^~~
postpuff.c:447:12: warning: passing argument 1 of ‘sscanf’ from incompatible pointer type [-Wincompatible-pointer-types]
sscanf(&buf,"%lf %lf %lf %lf %lf %lf %lf %lf %lf",
^~~~
In file included from postpuff.c:20:
/usr/include/stdio.h:399:43: note: expected ‘constchar * restrict’ but argument is of type ‘char (*)[200]’
extern int sscanf (constchar *__restrict __s,
~~~~~~~~~~~~~~~~~~~~~~~^~~
The text was updated successfully, but these errors were encountered:
While compiling the code under Debian Buster, gcc shows these warnings regarding incompatible pointer type passed to
sscanf
The text was updated successfully, but these errors were encountered: