I'm getting a warning for this line:
e = strtol(++s, (char **)&s, 10);
Moving the ++s
to a separate statement makes the warning go away, but as far as I can tell, this warning is completely incorrect. The value of s
is only used once, in the computation of ++s
. The second use of s
is only to take its address. Is there something I'm missing?