B
Bart Vandewoestyne
I noticed that the following line
sscanf(buf, "%*d %lf %lf %*lf", VX+n, VY+n);
leads to the following gcc warning:
warning: use of assignment suppression and length modifier
together in gnu_scanf format
I would assume this is due to the %*lf format specifier. To
solve the problem, i noticed that changing the line to
sscanf(buf, "%*d %lf %lf %*f", VX+n, VY+n);
makes the warning go away. It appears that %*lf is something
'bad' to use, but why? Is my solution indeed the best way to get
rid of this warning and make my code more C89 compliant?
Thanks,
Bart
sscanf(buf, "%*d %lf %lf %*lf", VX+n, VY+n);
leads to the following gcc warning:
warning: use of assignment suppression and length modifier
together in gnu_scanf format
I would assume this is due to the %*lf format specifier. To
solve the problem, i noticed that changing the line to
sscanf(buf, "%*d %lf %lf %*f", VX+n, VY+n);
makes the warning go away. It appears that %*lf is something
'bad' to use, but why? Is my solution indeed the best way to get
rid of this warning and make my code more C89 compliant?
Thanks,
Bart