If calling `next-line' is really correct in org-mode, it ought to be
called inside (with-no-warnings ...) to (1) suppress the compiler
warning and (2) show programmers "yes we really mean this, it wasn't a
dumb mistake".
Thus, the code that called `next-line' needed to be fixed one way
or another.
If not by changing to `forward-line' then by adding `with-no-
warnings'.
At the same time, this shows the need to look more closely at a
program
before changing `next-line' to `forward-line'. That change is only
safe
if point is at the beginning of a line. So you need to check that
that is
always so, before making the change.