[BusyBox] warning in cal.c

Steven Scholz steven.scholz at imc-berlin.de
Wed Aug 13 10:47:43 UTC 2003


Hi there,

I do get the following warning

coreutils/cal.c: In function `build_row':
coreutils/cal.c:327: warning: value computed is not used

in build_row() line

                         if (julian) {
 >>>>>>>>>>>                     *++p;
                                 if (day >= 100) {
                                         *p = '0';
                                         p[-1] = (day / 100) + '0';
                                         day %= 100;
                                 }
                         }

So is it an error to write "*++p"?
Did the author ment to write something different?
Or is it realy just redundant?

At least at the first glance it works without this line!

Steven





More information about the busybox mailing list